Comments (2)
Indexed log fields that are larger than 32 bytes (like a dynamic byte array) don't actually encode themselves in the log data at all (only their hash as an indexed field). If you want to index it AND have the data, you need to include it twice (once indexed and once not).
from ethcontract-rs.
You can add the attribute indexed to up to three parameters which adds them to a special data structure known as βtopicsβ instead of the data part of the log. A topic can only hold a single word (32 bytes) so if you use a reference type for an indexed argument, the Keccak-256 hash of the value is stored as a topic instead.
https://docs.soliditylang.org/en/latest/contracts.html#events
Nick is right! Ups, we have to redeploy
from ethcontract-rs.
Related Issues (20)
- Ethcontract erroneously waits for transaction even after it was mined
- Add exponential backoff when polling for transaction confirmation
- Rebuild crate when artefact contents change HOT 7
- Support networks with same chain id but different names HOT 2
- Introduce `trait Artifact`. HOT 1
- Differentiate batch errors.
- Add ability to downcast DynWeb3 into conctrete Web3 type.
- Implement loader for hardhat `deployments` directory format
- Detect artifact formats automatically
- Update Cargo `web3` dependency before publishing HOT 3
- ethcontract-generate fails to compile HOT 4
- support for solidity Custom Errors HOT 2
- Problem with proc macro contract! (on Windows) HOT 9
- Instructions in hardhat readme are incorrect HOT 1
- Hardhat support probably shouldn't depend on hardhat-deploy HOT 1
- Special Case: Contract event emits with no values
- Rust compiler complaints about Event enum implementation: Different data size
- Support for interfaces
- Replace use of `net_version` with `eth_chainId`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethcontract-rs.