Docs #123
Annotations
7 errors
|
build
Process completed with exit code 1.
|
|
src/swap.test.ts > Test swap functionality > separate approval and swap:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20088) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000ec5a1e2200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000060000640b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000
gas: 248356
maxFeePerGas: 1.000000038 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20088
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:410:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000ec5a1e2200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000060000640b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000\n gas: 248356\n maxFeePerGas: 1.000000038 gwei\n maxPriorityFeePerGas: 0 gwei\n nonce: 20088' ], shortMessage: 'Nonce provided for the transaction (20088) is lower than the current nonce of the account.\nTry increasing the nonce or find the latest nonce with `getTransactionCount`.', version: '2.38.2', walk: 'Function<walk>' }
Caused by: Caused by: NonceTooLowError: Nonce provided for the transaction (20088) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Details: nonce too low
Version: viem@2.38.2
❯ getNodeError ../../node_modules/viem/utils/errors/getNodeError.ts:99:12
❯ ../../node_modules/viem/utils/errors/getCallError.ts:35:19
❯ getCallError ../../node_modules/viem/uti
|
|
src/swap.test.ts > Test swap functionality > quote and swap from VELO to WETH:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20084) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db000b2c639c533813f4aa9d7837caf62653d097ff8500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922668000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e2ab1782d87b400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b0b2c639c533813f4aa9d7837caf62653d097ff850000644200000000000000000000000000000000000006000000000000000000000000000000000000000000
gas: 40000000
maxFeePerGas: 1.000000054 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20084
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:343:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db000b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|
src/swap.test.ts > Test swap functionality > quote and swap from VELO to ETH:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20082) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000308000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000299560e827af36c94d2ac33a39bce1fe78631088db000b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e262a8e4212cc00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b0b2c639c533813f4aa9d7837caf62653d097ff8500006442000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266000000000000000000000000000000000000000000000000001e262a8e4212cc
gas: 40000000
maxFeePerGas: 1.000000069 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20082
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:306:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000308000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000004bf3e32de155359d1d75e8b474b66848221142fc00000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000
|
|
src/swap.test.ts > Test swap functionality > quote and swap from VELO to USDC:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20078) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000000000000000000034145400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e9560e827af36c94d2ac33a39bce1fe78631088db00a50b23cdfb2ec7c590e84f403256f67ce6dffb84000b2c639c533813f4aa9d7837caf62653d097ff850000
gas: 40000000
maxFeePerGas: 1.000000114 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20078
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:228:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000000000000000000034145400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e9560e827af36c94d2ac33a39bce1fe78631088db00a50b23cdfb2ec7c590e84f403256f67ce6dffb84000b2c639c533813f4aa9d7837caf62653d097ff850000\n gas: 40000000\n maxFeePerGas: 1.000000114 gwei\n maxPriorityFeePerGas: 0 gwei\n nonce: 20078' ], shortMessage: 'Nonce provided for the transaction (20078) is lower than the current nonce of the account.\nTry increasing the nonce or find the latest nonce with `getTransactionCount`.', version: '2.38.2', walk: 'Function<walk>' }
Caused by: Caused by: NonceTooLowError: Nonce provided for the transaction (20078) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Details: nonce too low
Version: viem@2.38.2
❯ getNodeError ../../node_modules/viem/utils/errors/getNodeError.ts:99:12
❯ ../../node_modules/viem/utils/errors/getCallError.ts:35:19
❯ getCallError ../../node_modules/viem
|
|
src/swap.test.ts > Test swap functionality > quote and swap from WETH to USDC:
packages/sugar-sdk/src/swap.ts#L337
CallExecutionError: Nonce provided for the transaction (20076) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Raw Call Arguments:
from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
to: 0x4bf3e32de155359d1d75e8b474b66848221142fc
value: 0 ETH
data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000ec96521600000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000060000640b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000
gas: 237698
maxFeePerGas: 1.000000148 gwei
maxPriorityFeePerGas: 0 gwei
nonce: 20076
Details: nonce too low
Version: viem@2.38.2
❯ getCallError ../../node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call ../../node_modules/viem/actions/public/call.ts:307:11
❯ waitForTransactionReceipt ../../node_modules/@wagmi/core/src/actions/waitForTransactionReceipt.ts:70:18
❯ swap src/swap.ts:337:19
❯ src/swap.test.ts:188:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'nonce too low', docsPath: undefined, metaMessages: [ 'Raw Call Arguments:', ' from: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\n to: 0x4bf3e32de155359d1d75e8b474b66848221142fc\n value: 0 ETH\n data: 0x24856bc30000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000ec96521600000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b42000000000000000000000000000000000000060000640b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000\n gas: 237698\n maxFeePerGas: 1.000000148 gwei\n maxPriorityFeePerGas: 0 gwei\n nonce: 20076' ], shortMessage: 'Nonce provided for the transaction (20076) is lower than the current nonce of the account.\nTry increasing the nonce or find the latest nonce with `getTransactionCount`.', version: '2.38.2', walk: 'Function<walk>' }
Caused by: Caused by: NonceTooLowError: Nonce provided for the transaction (20076) is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with `getTransactionCount`.
Details: nonce too low
Version: viem@2.38.2
❯ getNodeError ../../node_modules/viem/utils/errors/getNodeError.ts:99:12
❯ ../../node_modules/viem/utils/errors/getCallError.ts:35:19
❯ getCallError ../../node_modules/viem/uti
|
|
src/swap.test.ts > getCallDataForSwap > handles missing quotes:
packages/sugar-sdk/src/swap.test.ts#L129
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ src/swap.test.ts:129:3
|