What happens if I set a gas limit that is not enough?

I think I ran into a weird situation, if I set gasLimit for a tx manually and if it’s not enough, like:

 await invoiceFactroy.connect(provider.getSigner(admin.address)).enrollAnchor(anchor.address, { gasLimit: 1000000 })

The transaction will not revert but according to the logs it didn’t execute my function.
Like this one: Binance Transaction Hash (Txhash) Details | BscScan

But if I do without gasLimit:

 await invoiceFactroy.connect(provider.getSigner(admin.address)).enrollAnchor(anchor.address)

It works fine with correct logs.

It is a bug?

Yes, this is a bug with GSN 2.0.0
We’re in the process of completing and releasing GSN 2.2.0, which resolves this bug.