-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on getPastEvents for solidity@0.4.x #3680
Comments
Please see related issue: #3544 from ethers-io/ethers.js#992 (comment):
|
I've added support in ethers 5.0.12 for supporting legacy Solidity 0.4 external event data. I believe web3 depends on the abi package directly, in which case web3 should upgrade to For more details, please see ethers-io/ethers.js#891. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment. |
I think #3738 is related, and the release candidate should fix this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment. |
@spacesailor24 can you confirm if the RC fixed this? |
I copied over the provided code into a test repo I'm getting the presumably expected output of: [
{
address: '0x0825f16598AcB518851f8959b8267EF296c57f81',
blockHash: '0xc6ccd170d9dd5d86906b0f7dd9c5d34cadc19bc8d9c54eba5c4b9a5f5cfe72bf',
blockNumber: 19567645,
logIndex: 7,
removed: false,
transactionHash: '0xae646874553121365f59bb08864a61b1a883f0a0d25d7ee100a3786e2a3a37b5',
transactionIndex: 2,
transactionLogIndex: '0x0',
type: 'mined',
id: 'log_dc96d986',
returnValues: Result {
'0': '28',
'1': '/ipfs/QmTJXDEWMPwNq1qhXB9EKCT6L7oqcnZm5dbyqFZiPCQF2V/linguo-meta-evidence.json',
_metaEvidenceID: '28',
_evidence: '/ipfs/QmTJXDEWMPwNq1qhXB9EKCT6L7oqcnZm5dbyqFZiPCQF2V/linguo-meta-evidence.json'
},
event: 'MetaEvidence',
signature: '0x61606860eb6c87306811e2695215385101daab53bd6ab4e9f9049aead9363c7d',
raw: {
data: '0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004e2f697066732f516d544a584445574d50774e71317168584239454b4354364c376f71636e5a6d3564627971465a695043514632562f6c696e67756f2d6d6574612d65766964656e63652e6a736f6e',
topics: [Array]
}
}
] So @GregTheGreek I do believe this to be resolved |
This relates to #3544.
Expected behavior
If I use
web3
<=1.2.6
, everything works just fine.Actual behavior
I get the following error:
Steps to reproduce the behavior
Here's the relevant part of the ABI for the contract:
Here's the link to the smart contract implementation: https://github.com/kleros/kleros-interaction/blob/master/contracts/standard/arbitration/IArbitrable.sol#L27
Here's the address of the deployed contract on Kovan network:
0x0825f16598AcB518851f8959b8267EF296c57f81
.Using the following snippet:
Logs
N/A
Environment
node
@10.22.0
web3
@1.2.11
yarn
@1.22.4
The text was updated successfully, but these errors were encountered: