Replies: 1 comment 2 replies
-
Can you check out |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With a contract given, is there a way to retrieve abi code out of it?
The contract is generated with deploy address, its abi and wallet as below:
let contract = new ethers.Contract(deploy_address, abi, wallet);
The app also has access to the abi code in string format. But the
abi
code in string format seems daunting hard (not sure if possible) to be converted back to array it represents. There isinterface
incontract
but I am not sure if it is the same as abi code.The
abi
will be used like below:const events = abi.filter(obj => obj.type ? obj.type === "event" : false);
Beta Was this translation helpful? Give feedback.
All reactions