feat: add support for non-18 decimal custom gas token #1164
Annotations
2 errors
src/createRollup.integration.test.ts:
src/createRollupPrepareTransactionRequest.ts#L114
EstimateGasExecutionError: Execution reverted with reason: ERC20: insufficient allowance.
Estimate Gas Arguments:
from: 0x3EaCb30f025630857aDffac9B2366F953eFE4F98
to: 0x4287839696d650A0cf93b98351e85199102335D0
value: 0 ETH
data: 0x331f9b0b0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000005600000000000000000000000000000000000000000000000000000000000019999000000000000000000000000e069078ba9acce4eeae609d8754515cf13dd670600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000005a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016345785d8a0000184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa390000000000000000000000003eacb30f025630857adffac9b2366f953efe4f98000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e4b612f200000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007080000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000546000000000000000000000000000000000000000000000000000000000000000e1000000000000000000000000000000000000000000000000000000000000002747b22686f6d657374656164426c6f636b223a302c2264616f466f726b426c6f636b223a6e756c6c2c2264616f466f726b537570706f7274223a747275652c22656970313530426c6f636b223a302c2265697031353048617368223a22307830303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030222c22656970313535426c6f636b223a302c22656970313538426c6f636b223a302c2262797a616e7469756d426c6f636b223a302c22636f6e7374616e74696e6f706c65426c6f636b223a302c2270657465727362757267426c6f636b223a302c22697374616e62756c426c6f636b223a302c226d756972476c6163696572426c6f636b223a302c226265726c696e426c6f636b223a302c226c6f6e646f6e426c6f636b223a302c22636c69717565223a7b22706572696f64223a302c2265706f6368223a307d2c22617262697472756d223a7b22456e61626c654172624f53223a747275652c22416c6c6f774465627567507265636f6d70696c6573223a66616c73652c2244617461417661696c6162696c697479436f6d6d6974746565223a747275652c22496e697469616c4172624f5356657273696f6e223a33322c2247656e65736973426c6f636b4e756d223a302c224d6178436f646553697a65223a32343537362c224d6178496e6974436f646553697a65223a34393135322c22496e697469616c436861696e4f776e6572223a22307833456143623330663032353633303835376144666661633942323336364639353365464534463938227d2c22636861696e4964223a333833373133373635307d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003f1eae7d46d88f08fc2f8ed27fcb2ab183eb2d0e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000003f1eae7d46d88f08fc2f8ed27fcb2ab183eb2d0e
maxFeePerGas: 0.12 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 54
Details: execution reverted: ERC20: insufficient allowance
Version: [email protected]
❯ getEstimateGasError node_modules/viem/utils/errors/getEstimateGasError.ts:42:10
❯ estimateGas node_modules/viem/actions/public/estimateGas.ts:163:11
❯ prepareTransactionRequest node_modules/viem/actions/wallet/prepareTransactionRequest.ts:201:19
❯ Module.createRollupPrepareTransactionRequest src/createRollupPrepareTransactionRequest.ts:114:19
❯ Module.createRollup src/createRollup.ts:174:21
❯ Module.createRollupHelper src/testHelpers.ts:165:35
❯ src/createRollup.integration.test.ts:63:59
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
|
Test (Integration) - Custom gas token with 6 decimals
Process completed with exit code 1.
|