v0.9.5
- Generate ABI from bytes with method
from_bytes
ofAbigen
Example usage:
Abigen::from_bytes("Contract", content_bytes))?
.generate()?
.write_to_file("src/abi/contract.rs")?;
from_bytes
of Abigen
Abigen::from_bytes("Contract", content_bytes))?
.generate()?
.write_to_file("src/abi/contract.rs")?;