Comments (3)
The signature in the Rust code you provided is replicate(bytes,bytes,bytes,address)
, which is correct for the given sol!
function. What signature are you expecting?
from core.
independently verifying the 4-byte with cast gives the same result as sol!
which we can see matches the sol!
output of the rust-sketch
bin
Can you say what function definition gave 0x6fc310f8
and how it was printed from the forge script?
from core.
Sorry, you're right, I'm wrong. Had a huge cold yesterday and put the similarly named but incorrect contract into forge to derive that "expected selector".
I was trying to encode a call to Multicall3 and it was working when I did not include any calls, but when including this call, failed. Combined with my head pounding, jumped to a false conclusion
from core.
Related Issues (20)
- [Bug] Error when using sol! to parse a Solidity file HOT 4
- [Feature] improve error messages on sol invocations
- [Bug] sol! macro event signature mismatch
- [Bug] `sol!` only accepts string literal HOT 2
- [Bug] Regression: code examples are missing in rendered docs HOT 2
- [Feature] Add additional aliases
- [Bug] Simple getter not available on loaded artifact, yet available on equivalent embedded contract HOT 2
- [Feature] sol! attrs bytecode_path and deployed_bytecode_path
- [Bug] Type paths lost when generating code with sol! macro via json abi HOT 1
- [Bug] Incompatible with `serde_json::from_reader`
- [Refactor] Redesign APIs to prevent users from wanting to keep JSON abi data
- [Documentation] Add documentation about `sol!` and `abi_encode` HOT 1
- AbiItem parsing from human readable ABI does not allow for state mutibility keywords HOT 2
- [Bug] Fail to validate calldata with sol type HOT 2
- abi编码 HOT 6
- [Feature] `derive` attributes for Solidity files
- [Bug] `abi_decode_returns` doesn't work with `slot0` by returning `TypeCheckFail` HOT 1
- Why redefine this mask function when ruint crate already have same mask function? HOT 1
- Why wasn't multicall merged into the main branch?
- Oops, grammer error
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 core.