Skip to content

Commit

Permalink
Added the space after "if"
Browse files Browse the repository at this point in the history
  • Loading branch information
AkihisaY committed Jan 22, 2025
1 parent 7ef78af commit 425286c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function _parseData(abis: ContractData['abi'][], data: viem.Hash) {

for (const abi of abis) {
for (const abiItem of abi) {
if(abiItem.type === 'error'){
if (abiItem.type === 'error') {
const selector = viem.toFunctionSelector(formatAbiItem(abiItem).substring(6));
if (selector === data.slice(0, 10)) {
return { abi, result: data.length > 10 ? viem.decodeErrorResult({ abi, data }) : formatAbiItem(abiItem) };
Expand Down

0 comments on commit 425286c

Please sign in to comment.