Skip to content

Commit 5db3a51

Browse files
committed
simplify account setup
1 parent d63fd82 commit 5db3a51

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/evm/test/precompiles/12-execute.spec.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ describe('runCall', () => {
187187
const hash = bytesToHex(sha256(traceBytes))
188188
evm['executionBlobs'].set(hash, traceBytes)
189189

190-
const caller = createAddressFromString('0x0000000000000000000000000000000000001234')
191-
await evm.stateManager.putAccount(caller, createAccount({ balance: 0xffffffffffffffffn }))
192190
const precompileAddrStr = '0x0000000000000000000000000000000000000012'
193191

194192
const input = concatBytes(
@@ -200,14 +198,10 @@ describe('runCall', () => {
200198

201199
const mainnetTx = {
202200
to: createAddressFromString(precompileAddrStr),
203-
caller,
204-
gasLimit: BigInt('0xffffffffff'),
205-
gasPrice: BigInt('0x1'),
206-
value: BigInt('0x1'),
207201
data: input,
208202
}
209203

210-
const res2 = await evm.runCall(mainnetTx)
204+
const res2 = await evm.runCall({ ...mainnetTx, skipBalance: true })
211205
assert.equal(res2.execResult.returnValue[0], 1)
212206
})
213207
})

0 commit comments

Comments
 (0)