Skip to content

Commit 2fb8039

Browse files
committed
fix: logic; fixture
1 parent b7ea242 commit 2fb8039

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fixtures/pvm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export const disableL1ValidatorTxBytes = () =>
389389
concatBytes(baseTxbytes(), idBytes(), bytesForInt(10), inputBytes());
390390

391391
export const feeState = (): FeeState => ({
392-
capacity: 1_000_000_000n,
392+
capacity: 999_999n,
393393
excess: 1n,
394394
price: 1n,
395395
timestamp: new Date().toISOString(),

src/vms/pvm/etna-builder/spendHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export class SpendHelper {
304304
*/
305305
verifyGasUsage(): Error | null {
306306
const gas = this.calculateGas();
307-
if (this.feeState.capacity <= gas) {
307+
if (this.feeState.capacity < gas) {
308308
return new Error(
309309
`Gas usage of transaction (${gas.toString()}) exceeds capacity (${this.feeState.capacity.toString()})`,
310310
);

0 commit comments

Comments
 (0)