test: set gasPrice
to be zero
#37
Annotations
2 errors and 2 warnings
limit-order.test.ts > make bid order:
test/limit-order.test.ts#L94
TransactionExecutionError: The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.
This error could arise when the account does not have enough funds to:
- pay for the total gas fee,
- pay for the value to send.
The cost of the transaction is calculated as `gas * gas fee + value`, where:
- `gas` is the amount of gas needed for transaction to execute,
- `gas fee` is the gas fee,
- `value` is the amount of ether to send to the recipient.
Request Arguments:
from: 0xF8c1869Ecd4df136693C45EcE1b67f85B6bDaE69
to: 0x2489e8daffb7A4900074840C24e8096A25e2Eeb0
value: 0 ETH
data: 0x7d7731100000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000660e47f80000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000006631c4f1d45bb65b8eeeb5bcdea09be74f45c3afbc9ba1e4fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcd6740000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000bfd44e79fb7f6dd5887a9426c8ef85a0cd23e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000bfd44e79fb7f6dd5887a9426c8ef85a0cd23e00000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000660e47f7000000000000000000000000000000000000000000000000000000000000001b6e1e726130b238b55febaee82d9a09301717953f31c28e60e02ca70aebcfe8c42811c396715fe0813cb349e7ff35aa89e34893fd37721b81e869c048f7815a48
gas: 479063
gasPrice: 1.087500001 gwei
Details: Insufficient funds for gas * price + value
Version: viem@2.9.6
❯ getTransactionError ../node_modules/viem/utils/errors/getTransactionError.ts:44:10
❯ sendTransaction ../node_modules/viem/actions/wallet/sendTransaction.ts:238:11
❯ limit-order.test.ts:94:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Insufficient funds for gas * price + value', docsPath: undefined, metaMessages: [ 'This error could arise when the account does not have enough funds to:', ' - pay for the total gas fee,', ' - pay for the value to send.', ' ', 'The cost of the transaction is calculated as `gas * gas fee + value`, where:', ' - `gas` is the amount of gas needed for transaction to execute,', ' - `gas fee` is the gas fee,', ' - `value` is the amount of ether to send to the recipient.', ' ', 'Request Arguments:', ' from: 0xF8c1869Ecd4df136693C45EcE1b67f85B6bDaE69\n to: 0x2489e8daffb7A4900074840C24e8096A25e2Eeb0\n value: 0 ETH\n data: 0x7d7731100000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000660e47f80000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000006631c4f1d45bb65b8eeeb5bcdea09be74f45c3afbc9ba1e4fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcd6740000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000bfd44e79fb7f6dd5887a9426c8ef85a0cd23e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000bfd44e79fb7f6dd5887a9426c8ef85a0cd23e000000000000000000000
|
NPM Test (18.10)
Process completed with exit code 1.
|
Check TS (18.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
NPM Test (18.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|