New answers tagged

0 votes

How to log an event which emits state of the contract in nethereum?

I believe the problem is you are assuming your StateType enum is represented as int while by the solidity docs enums are mapped to the uint8 type. Consider also the fact that before solidity 0.8 enums ...
user avatar
  • 101
0 votes

ganache extract logs from reverted transaction?

Another way would be to use ganache-cli with the verbose flag: --verbose This would log the requests and responses. Now, after you send your request, you will in the logs the response. This latter ...
user avatar
0 votes

eth_getLogs request works for Eth Mainnet, but not polygon mumbai. Error -32602, missing value for required argument 0

Figured it out by reading the docs more closely. fromBlock [optional, default is "latest"] - hexadecimal block number, or the string "latest", "earliest" or "...
user avatar
0 votes

How to get all historic changes of a state variable in a smart contract?

To add to @pabloruiz55 's answer, I wanted to suggest yet another alternative that I think is better than storing an array, as it is O(1) in the number of historical updates: use a backwards linked ...
user avatar
  • 101

Top 50 recent answers are included