Skip to content

Add not enough gas for CTX custom error to BITE 2 #2467

@oleksandrSydorenkoJ

Description

@oleksandrSydorenkoJ

Is your feature request related to a problem? Please describe.
it is actual only for gasLimit < 21000
Users trigger the Bite1 transaction, which, in the order, executes the CTX (BITE2 tx). And the Bite2 transaction can be dropped from the block because there is not enough gas for execution. And the end user doesn't know the reason why the transaction wasn't executed.

Describe the solution you'd like
The Precompiled.submitCTX function is triggered inside the contract and should have a validation on finalGasLimit, and it should return an error if the provided value is less than 21000

In this case User will know the problem during the first BITE1 transaction execution

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

Status
To Do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions