diff --git a/src/fixtures/pvm.ts b/src/fixtures/pvm.ts index 9d81dc60f..59dbc1529 100644 --- a/src/fixtures/pvm.ts +++ b/src/fixtures/pvm.ts @@ -389,7 +389,7 @@ export const disableL1ValidatorTxBytes = () => concatBytes(baseTxbytes(), idBytes(), bytesForInt(10), inputBytes()); export const feeState = (): FeeState => ({ - capacity: 1_000_000_000n, + capacity: 999_999n, excess: 1n, price: 1n, timestamp: new Date().toISOString(), diff --git a/src/vms/pvm/etna-builder/spendHelper.ts b/src/vms/pvm/etna-builder/spendHelper.ts index eb396fb19..6b857124e 100644 --- a/src/vms/pvm/etna-builder/spendHelper.ts +++ b/src/vms/pvm/etna-builder/spendHelper.ts @@ -304,7 +304,7 @@ export class SpendHelper { */ verifyGasUsage(): Error | null { const gas = this.calculateGas(); - if (this.feeState.capacity <= gas) { + if (this.feeState.capacity < gas) { return new Error( `Gas usage of transaction (${gas.toString()}) exceeds capacity (${this.feeState.capacity.toString()})`, );