Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

String/fragment based Interface/ABI support #95

Closed
SilentCicero opened this issue Nov 6, 2020 · 4 comments
Closed

String/fragment based Interface/ABI support #95

SilentCicero opened this issue Nov 6, 2020 · 4 comments

Comments

@SilentCicero
Copy link

Heyo,

Killing it Georgios.

Is there the Interface/String based ABI decoder in ethers.rs.

I'd like to describe contract ABI that way, ie:

[ "function someMethod() returns (uint256)", "function ..." ]
@vaibhavchellani
Copy link
Collaborator

vaibhavchellani commented Nov 6, 2020

Think there was something in works here: #88

@roynalnaruto
Copy link
Collaborator

@SilentCicero You can check an example usage here

@gakonst
Copy link
Owner

gakonst commented Nov 6, 2020

@SilentCicero
Copy link
Author

Very cool. This is great, basically Ethers but in Rust. Can it get any better? Closing.

meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this issue Mar 21, 2022
* test: re-enable FFI test

* feat: add FFI to the HEVM ABI

* feat: implement ffi cheatcode

FFI expects an ABI-encoded hex string to be output by whatever command is being run

if the command is not found or if there's no hex encoding, it'll return a Fatal error

The data is returned as raw bytes to Solidity, where they need to be decoded for
further processing

* feat: throw error if ffi is not enabled

* fix(decode_revert): allow passing strings w/o error prefix

* feat: enable ffi flag in CLI

* chore: clippy lints
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants