Consensys / Consensys/abi-decoder

decode error

Open
#107 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
641
Forks
215
PR merge metrics
No merged PRs in 30d

Description

```
recipient: value out of range (argument="value", value=20, code=INVALID_ARGUMENT, version=bytes/5.7.0)
at Logger.makeError (/Users/a/Downloads/hardhat/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/Users/a/Downloads/hardhat/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at Logger.throwArgumentError (/Users/a/Downloads/hardhat/node_modules/@ethersproject/logger/src.ts/index.ts:285:21)
at hexZeroPad (/Users/a/Downloads/hardhat/node_modules/@ethersproject/bytes/src.ts/index.ts:323:16)
at AddressCoder.decode (/Users/a/Downloads/hardhat/node_modules/@ethersproject/abi/src.ts/coders/address.ts:28:37)
at /Users/a/Downloads/hardhat/node_modules/@ethersproject/abi/src.ts/coders/array.ts:108:31
at Array.forEach ()
at unpack (/Users/a/Downloads/hardhat/node_modules/@ethersproject/abi/src.ts/coders/array.ts:89:12)
at TupleCoder.decode (/Users/a/Downloads/hardhat/node_modules/@ethersproject/abi/src.ts/coders/tuple.ts:58:47)
at AbiCoder.decode (/Users/a/Downloads/hardhat/node_modules/@ethersproject/abi/src.ts/abi-coder.ts:118:22) {
reason: 'value out of range',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: 20,
baseType: 'address',
type: 'address'
}

```

https://etherscan.io/tx/0x6335ebc4c023c16e9a3a01a195ed999717a9b6c5688eb68620ecafddddee296e

input data is `0xa9059cbb066e82b0c41d5457288a8db0d6c295d92a9844d8fbe948a56a93be730b9b948a0000000000000000000000000000000000000000000000000000000035a4e900`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the Etherscan transaction and its input data, then trace the reported failure through @ethersproject/abi/src.ts/coders/address.ts and the decoder stack shown in the report. Confirm whether the transaction data and expected ABI agree; the issue is complete when the cause of the address decode error and the required behavior are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.