You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
use ethers::prelude::*;
use ethers_derive_eip712::*;
+ use ethers::types::transaction::eip712::Eip712;#[derive(Debug, Clone, Eip712, EthAbiType)]#[eip712(
name = "Postcard",
version = "1",
chain_id = 1,
+ verifying_contract = "0x0000000000000000000000000000000000000001",- verifying_contract = "0x0000000000000000000000000000000000000000",
salt = "and-pepper"
)]
pub(crate) struct PostcardClaim {
pub foo: String,
}
fn main() {
println!("Hello, world!");
}
and also hex, serde_json need to be added as a dependency.
Perhaps the docs should be updated to reflect this, or the dependencies can be brought alongside ethers-derive-eip712 so the consumer doesn't have to pull them in?
Version
Platform
Description
https://github.com/the-emerald/eip712-verifying-contract see this repo for a minimum reproducible example.
It is impossible to get the
eip712
proc-macro to work, as it complains about:even though clearly in the MRE the field is present.
The text was updated successfully, but these errors were encountered: