Commit 3463cc6b authored by Georgios Konstantopoulos's avatar Georgios Konstantopoulos Committed by Liam Horne

fix(rpc-spec): specify `from` address to avoid nonce-too-low

if no `from` is specified, the provider will use the default `from` which
sometimes can be raced across integration tests with a 0 nonce
parent 5731de48
...@@ -129,6 +129,7 @@ describe('Basic RPC tests', () => { ...@@ -129,6 +129,7 @@ describe('Basic RPC tests', () => {
const estimate = await l2Provider.estimateGas({ const estimate = await l2Provider.estimateGas({
...DEFAULT_TRANSACTION, ...DEFAULT_TRANSACTION,
data: '0x' + '00'.repeat(len), data: '0x' + '00'.repeat(len),
from: '0x' + '1234'.repeat(10),
}) })
expect(estimate.gt(last)).to.be.true expect(estimate.gt(last)).to.be.true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment