Skip to content

feat: add Permit2 approval process for UniversalRouter #3160

feat: add Permit2 approval process for UniversalRouter

feat: add Permit2 approval process for UniversalRouter #3160

Triggered via pull request August 6, 2024 00:02
Status Failure
Total duration 2m 47s
Artifacts

test.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

3 errors
src/swap/utils/processSwapTransaction.test.ts > processSwapTransaction > should request approval and make the swap for ERC-20 tokens: src/swap/utils/processSwapTransaction.ts#L61
InvalidAddressError: Address "" is invalid. - Address must be a hex value of 20 bytes (40 hex characters). - Address must match its checksum counterpart. Version: [email protected] ❯ encodeAddress node_modules/viem/utils/abi/encodeAbiParameters.ts:219:32 ❯ prepareParam node_modules/viem/utils/abi/encodeAbiParameters.ts:159:12 ❯ prepareParams node_modules/viem/utils/abi/encodeAbiParameters.ts:124:25 ❯ encodeAbiParameters node_modules/viem/utils/abi/encodeAbiParameters.ts:97:26 ❯ Module.encodeFunctionData node_modules/viem/utils/abi/encodeFunctionData.ts:93:9 ❯ Module.processSwapTransaction src/swap/utils/processSwapTransaction.ts:61:20 ❯ src/swap/utils/processSwapTransaction.test.ts:112:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: undefined, metaMessages: [ '- Address must be a hex value of 20 bytes (40 hex characters).', '- Address must match its checksum counterpart.' ], shortMessage: 'Address "" is invalid.', version: '[email protected]', walk: 'Function<walk>' }
src/swap/utils/processSwapTransaction.test.ts > processSwapTransaction > should successfully call relevant async lifecycle hooks: src/swap/utils/processSwapTransaction.ts#L61
InvalidAddressError: Address "" is invalid. - Address must be a hex value of 20 bytes (40 hex characters). - Address must match its checksum counterpart. Version: [email protected] ❯ encodeAddress node_modules/viem/utils/abi/encodeAbiParameters.ts:219:32 ❯ prepareParam node_modules/viem/utils/abi/encodeAbiParameters.ts:159:12 ❯ prepareParams node_modules/viem/utils/abi/encodeAbiParameters.ts:124:25 ❯ encodeAbiParameters node_modules/viem/utils/abi/encodeAbiParameters.ts:97:26 ❯ Module.encodeFunctionData node_modules/viem/utils/abi/encodeFunctionData.ts:93:9 ❯ Module.processSwapTransaction src/swap/utils/processSwapTransaction.ts:61:20 ❯ src/swap/utils/processSwapTransaction.test.ts:299:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: undefined, metaMessages: [ '- Address must be a hex value of 20 bytes (40 hex characters).', '- Address must match its checksum counterpart.' ], shortMessage: 'Address "" is invalid.', version: '[email protected]', walk: 'Function<walk>' }
build (18.x)
Process completed with exit code 1.