alloy-rs / examples

Example code for using alloy and alloy-core
Apache License 2.0
136 stars 34 forks source link

Cannot run `deploy_from_artifact` example due to duplicate field 'status' #155

Closed ryardley closed 1 month ago

ryardley commented 1 month ago

Was attempting to get some rust client code tested but found I kept on running into this - which I was struggling to solve.

Different examples all appear to have the same issue:

checkout repo at 58f92f2

Is it my anvil/rust version?

❯ anvil --version
anvil 0.2.0 (d75318c 2024-09-02T00:21:21.299075319Z)
❯ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)
❯ cargo run --example deploy_from_artifact
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s
     Running `target/debug/examples/deploy_from_artifact`
Error: deserialization error: duplicate field `status` at line 1 column 1086

Caused by:
    duplicate field `status` at line 1 column 1086

Location:
    examples/contracts/examples/deploy_from_artifact.rs:22:20

NOTE: I removed advanced folder from my working directory as checking out reth was taking too long on my connection. This hasn't changed this error as I have been getting this error in other examples I have been attempting to work in different repos.

ryardley commented 1 month ago

Can confirm this still happens with anvil 0.2.0 (471e4ac 2024-10-03T00:22:02.606371953Z) but does not when I use anvil 0.2.0 (9501589 2024-10-30T00:22:24.181391729Z) so I am happy to close this.