Replies: 3 comments 4 replies
-
Just a quick look at this issue, I haven’t had time to dig in yet, but based on your comments I suspect it is because you are using property names that conflict with JavaScript built-in names. There is no way to solve this in JavaScript (especially in v5, which uses only ES3 features). Some of these issues may be mitigated in v6 which use proxies for a lot of these things. To solve these issues, your best bet is to rename the parameter names in the ABI. The names are not part of the encoded binary, so they are safe to modify. |
Beta Was this translation helpful? Give feedback.
-
Hi @ricmoo , thanks for the quick reply. Yes, this is what I suspect, so maybe more properties like I can't make changes to OpenZepplin :( so have to use another workaround. I'm still able to get value by index |
Beta Was this translation helpful? Give feedback.
-
A bit late to the party here, but Is this just a typo? In your second log statement, it should be |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys! I'm working with ERC1155 from OpenZepplin and come across this bug
here is a code of events from OZ
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/IERC1155.sol#L18-L30
Here are two ways how I get transaction using both ethers and web3
once I emit TransferSingle it all looks good, the transaction is received and parsed, then I can access all arguments by name
then I do the same with TransferBatch and I can see the transaction, parse it but cant get
values
from argumentsI tried to dig into ethers code but with no luck
what I think might happen is
Environment:
I use nodejs 16, ethers 5.5.4, web3 1.7.0 on macOS Catalina. Blockchain is Hyperledger Besu
Search Terms
Often similar issues have come up before. Include any search terms you have tried in this repository's Issues (including closed issues) and "Discussions", so if there are matching issues, we can be sure to add those keywords and link this issue to it, making it easier for people to find in the future.
Beta Was this translation helpful? Give feedback.
All reactions