feat: prepareAuthorization and signAuthorization actions
#1748
Annotations
11 errors and 2 warnings
|
|
|
packages/react/src/hooks/useReadContracts.test.ts#L26
Error: Timed out in waitUntil!
❯ packages/react/src/hooks/useReadContracts.test.ts:26:11
|
|
packages/react/src/hooks/useReadContracts.test.ts#L28
Error: Snapshot `default 1` mismatched
- Expected
+ Received
@@ -1,14 +1,50 @@
{
"data": [
{
- "result": 10n,
- "status": "success",
- },
- {
- "result": "WAGMI",
- "status": "success",
+ "error": [ContractFunctionExecutionError: HTTP request failed.
+
+ Status: 400
+ URL: http://127.0.0.1:8545/7142
+ Request body: {"method":"eth_call","params":[{"data":"0x82ad56cb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000100000000000000000000000000fba3912ca04dd458c843e2ee08967fc04f3579c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002470a08231000000000000000000000000a5cc3c03994db5b0d9a5eedd10cabab0813678ac00000000000000000000000000000000000000000000000000000000000000000000000000000000fba3912ca04dd458c843e2ee08967fc04f3579c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000495d89b4100000000000000000000000000000000000000000000000000000000","to":"0xca11bde05977b3631167028862be2a173976ca11"},"latest"]}
+
+ Raw Call Arguments:
+ to: 0xca11bde05977b3631167028862be2a173976ca11
+ data: 0x82ad56cb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000100000000000000000000000000fba3912ca04dd458c843e2ee08967fc04f3579c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002470a08231000000000000000000000000a5cc3c03994db5b0d9a5eedd10cabab0813678ac00000000000000000000000000000000000000000000000000000000000000000000000000000000fba3912ca04dd458c843e2ee08967fc04f3579c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000495d89b4100000000000000000000000000000000000000000000000000000000
+
+ Contract Call:
+ address: 0xca11bde05977b3631167028862be2a173976ca11
+ function: aggregate3((address target, bool allowFailure, bytes callData)[])
+ args: ([{"allowFailure":true,"callData":"0x70a08231000000000000000000000000a5cc3c03994db5b0d9a5eedd10cabab0813678ac","target":"0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2"},{"allowFailure":true,"callData":"0x95d89b41","target":"0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2"}])
+
+ Docs: https://viem.sh/docs/contract/readContract
+ Details: Bad Request
+ Version: viem@2.44.4],
+ "result": undefined,
+ "status": "failure",
+ },
+ {
+ "error": [ContractFunctionExecutionError: HTTP request failed.
+
+ Status: 400
+ URL: http://127.0.0.1:8545/7142
+ Request body: {"method":"eth_call","params":[{"data":"0x82ad56cb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000100000000000000000000000000fba3912ca04dd458c843e2ee08967fc04f3579c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002470a08231000000000000000000000000a5cc3c03994db5b0d9a5eedd10cabab0813678ac00000000000000000000000000000000000000000000000000000000000000000000000000000000fba3912ca04dd458c843e2ee08967fc04f3579c200000000000000000000000000000000000000000000000000000000000000010000000
|
|
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/core@x.y.z
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:12:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/core@x.y.z', walk: 'Function<walk>' }
|
|
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/core@x.y.z
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:12:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/core@x.y.z', walk: 'Function<walk>' }
|
|
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/core@x.y.z
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:12:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/core@x.y.z', walk: 'Function<walk>' }
|
|
packages/core/src/actions/codegen/createSimulateContract.test.ts#L23
AssertionError: promise rejected "ContractFunctionExecutionError: HTTP requ… { …(11) }" instead of resolving
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:23:3
Caused by: Caused by: ContractFunctionExecutionError: HTTP request failed.
Status: 400
URL: http://127.0.0.1:8545/2943
Request body: {"method":"eth_call","params":[{"data":"0x1249c58b","from":"0x95132632579b073D12a6673e18Ab05777a6B86f8","to":"0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2"},"latest"]}
Raw Call Arguments:
from: 0x95132632579b073D12a6673e18Ab05777a6B86f8
to: 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2
data: 0x1249c58b
Contract Call:
address: 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2
function: mint()
sender: 0x95132632579b073D12a6673e18Ab05777a6B86f8
Docs: https://viem.sh/docs/contract/simulateContract
Details: Bad Request
Version: viem@2.44.4
❯ getContractError node_modules/.pnpm/viem@2.44.4_bufferutil@4.0.8_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/errors/getContractError.js:33:12
❯ simulateContract node_modules/.pnpm/viem@2.44.4_bufferutil@4.0.8_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/actions/public/simulateContract.js:73:15
❯ simulateContract packages/core/src/actions/simulateContract.ts:146:31
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:19:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Bad Request', docsPath: '/docs/contract/simulateContract', metaMessages: [ 'Status: 400', 'URL: http://127.0.0.1:8545/2943', 'Request body: {"method":"eth_call","params":[{"data":"0x1249c58b","from":"0x95132632579b073D12a6673e18Ab05777a6B86f8","to":"0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2"},"latest"]}', ' ', 'Raw Call Arguments:', ' from: 0x95132632579b073D12a6673e18Ab05777a6B86f8\n to: 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2\n data: 0x1249c58b', ' ', 'Contract Call:', ' address: 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2\n function: mint()\n sender: 0x95132632579b073D12a6673e18Ab05777a6B86f8' ], shortMessage: 'HTTP request failed.', version: '2.44.4', abi: [ { type: 'constructor', stateMutability: 'nonpayable', inputs: [] }, { name: 'Approval', type: 'event', inputs: [ { type: 'address', name: 'owner', indexed: true }, { type: 'address', name: 'approved', indexed: true }, { type: 'uint256', name: 'tokenId', indexed: true } ] }, { name: 'ApprovalForAll', type: 'event', inputs: [ { type: 'address', name: 'owner', indexed: true }, { type: 'address', name: 'operator', indexed: true }, { type: 'bool', name: 'approved' } ] }, { name: 'Transfer', type: 'event', inputs: [ { type: 'address', name: 'from', indexed: true }, { type: 'address', name: 'to', indexed: true }, { type: 'uint256', name: 'tokenId', indexed: true } ] }, { name: 'approve', type: 'function', stateMutability: 'nonpayable', inputs: [ { type: 'address', name: 'to' }, { type: 'uint256', name: 'tokenId' } ], outputs: [] }, { name: 'balanceOf', type: 'function', stateMutability: 'view', inputs: [ { type: 'address', name: 'owner' } ], outputs: [ { type: 'uint256' } ] }, { name: 'getApproved', type: 'function', stateMutability: 'view', inputs: [ { type: 'uint256', name: 'tokenId' } ], outputs: [ { type: 'address' } ] }, { name: 'isApprovedForAll', type: 'function', stateMutability: 'view', inputs: [ { type: 'address', name: 'owner' }, { type: 'address', name: 'operator' } ], outputs: [ { type: 'bool' } ] }, { name: 'mint', type: 'function', stateMutability: 'nonpayable', inputs: [], outputs: [] }, { name: 'name', type: 'function', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { name: 'ownerOf', type: 'function', stateMutability: 'view', inputs: [ { type: 'uint256', name: 'tokenId' } ], outputs: [ { type: 'address' } ] }, { name: 'safeTransferFrom', type: 'function', stateMutability: 'nonpayable', inputs: [ { type: 'address', name: 'from' }, { type: 'address', name: 'to' }, { type: 'uint256', name: 'tokenId' } ], outputs: [] }, { n
|
|
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/core@x.y.z
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:12:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/core@x.y.z', walk: 'Function<walk>' }
|
|
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/core@x.y.z
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:12:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/core@x.y.z', walk: 'Function<walk>' }
|
|
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/core@x.y.z
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:12:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/core@x.y.z', walk: 'Function<walk>' }
|
|
packages/core/src/actions/codegen/createSimulateContract.test.ts#L23
AssertionError: promise rejected "ContractFunctionExecutionError: The contr… { …(11) }" instead of resolving
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:23:3
Caused by: Caused by: ContractFunctionExecutionError: The contract function "mint" reverted with the following reason:
failed to get storage for 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2 at 50741842047153584988999401352205041805604090323297595662356022646495794359476: server returned an error response: error code -32603: state at block #23535881 is pruned
Contract Call:
address: 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2
function: mint()
sender: 0x95132632579b073D12a6673e18Ab05777a6B86f8
Docs: https://viem.sh/docs/contract/simulateContract
Version: viem@2.44.4
❯ getContractError node_modules/.pnpm/viem@2.44.4_bufferutil@4.0.8_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/errors/getContractError.js:33:12
❯ simulateContract node_modules/.pnpm/viem@2.44.4_bufferutil@4.0.8_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/actions/public/simulateContract.js:73:15
❯ simulateContract packages/core/src/actions/simulateContract.ts:146:31
❯ packages/core/src/actions/codegen/createSimulateContract.test.ts:19:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/simulateContract', metaMessages: [ 'Contract Call:', ' address: 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2\n function: mint()\n sender: 0x95132632579b073D12a6673e18Ab05777a6B86f8' ], shortMessage: 'The contract function "mint" reverted with the following reason:\nfailed to get storage for 0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2 at 50741842047153584988999401352205041805604090323297595662356022646495794359476: server returned an error response: error code -32603: state at block #23535881 is pruned', version: '2.44.4', abi: [ { type: 'constructor', stateMutability: 'nonpayable', inputs: [] }, { name: 'Approval', type: 'event', inputs: [ { type: 'address', name: 'owner', indexed: true }, { type: 'address', name: 'approved', indexed: true }, { type: 'uint256', name: 'tokenId', indexed: true } ] }, { name: 'ApprovalForAll', type: 'event', inputs: [ { type: 'address', name: 'owner', indexed: true }, { type: 'address', name: 'operator', indexed: true }, { type: 'bool', name: 'approved' } ] }, { name: 'Transfer', type: 'event', inputs: [ { type: 'address', name: 'from', indexed: true }, { type: 'address', name: 'to', indexed: true }, { type: 'uint256', name: 'tokenId', indexed: true } ] }, { name: 'approve', type: 'function', stateMutability: 'nonpayable', inputs: [ { type: 'address', name: 'to' }, { type: 'uint256', name: 'tokenId' } ], outputs: [] }, { name: 'balanceOf', type: 'function', stateMutability: 'view', inputs: [ { type: 'address', name: 'owner' } ], outputs: [ { type: 'uint256' } ] }, { name: 'getApproved', type: 'function', stateMutability: 'view', inputs: [ { type: 'uint256', name: 'tokenId' } ], outputs: [ { type: 'address' } ] }, { name: 'isApprovedForAll', type: 'function', stateMutability: 'view', inputs: [ { type: 'address', name: 'owner' }, { type: 'address', name: 'operator' } ], outputs: [ { type: 'bool' } ] }, { name: 'mint', type: 'function', stateMutability: 'nonpayable', inputs: [], outputs: [] }, { name: 'name', type: 'function', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { name: 'ownerOf', type: 'function', stateMutability: 'view', inputs: [ { type: 'uint256', name: 'tokenId' } ], outputs: [ { type: 'address' } ] }, { name: 'safeTransferFrom', type: 'function', stateMutability: 'nonpayable', inputs: [ { type: 'address', name: 'from' }, { type: 'address', name: 'to' }, { type: 'uint256', name: 'tokenId' } ], outputs: [] }, { name: 'safeTransferFrom', type: 'function', stateMutability: 'nonpayable', inputs: [ { type: 'address', name: 'from' }, { type: 'address', name: 'to' }, { type: 'uint256', name: 'tokenId' }, { type: 'bytes', name: '_data' }
|
|
|
|
|
The logs for this run have expired and are no longer available.
Loading