Skip to content

Commit

Permalink
fix: Encoding error with zero data.
Browse files Browse the repository at this point in the history
  • Loading branch information
mprasanjith committed Aug 22, 2022
1 parent 2334937 commit 05f0a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/Guilds/contracts/useEncodedCall.ts
Expand Up @@ -7,7 +7,7 @@ export const encodeCall = (
contractInterface: utils.Interface
) => {
if (!contractInterface || !decodedCall.function || !decodedCall.args)
return utils.hexValue(0);
return utils.hexlify([0]);

const args = contractInterface
.getFunction(decodedCall.function.name)
Expand Down

0 comments on commit 05f0a21

Please sign in to comment.