Skip to content

Instantly share code, notes, and snippets.

@Jannis
Created April 28, 2022 12:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Jannis/c2c30f291038aa32813210f955d84f05 to your computer and use it in GitHub Desktop.
$ wasm-pack build
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
Compiling ethers-wasm v0.1.0 (/Users/jannis/work/oss/jannis/ethers-wasm)
error[E0433]: failed to resolve: could not find `EthEvent` in `ethers_contract`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `EthEvent` in `ethers_contract`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: could not find `EthDisplay` in `ethers_contract`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `EthDisplay` in `ethers_contract`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: could not find `EthAbiType` in `ethers_contract`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `EthAbiType` in `ethers_contract`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: could not find `EthCall` in `ethers_contract`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `EthCall` in `ethers_contract`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find attribute `ethevent` in this scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find attribute `ethcall` in this scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `serde_json`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `FeeAmountEnabledFilter: EthEvent` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `EthEvent` is not implemented for `FeeAmountEnabledFilter`
|
note: required by a bound in `ethers_contract::Contract::<M>::event`
--> /Users/jannis/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/contract.rs:167:21
|
167 | pub fn event<D: EthEvent>(&self) -> Event<M, D> {
| ^^^^^^^^ required by this bound in `ethers_contract::Contract::<M>::event`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `OwnerChangedFilter: EthEvent` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `EthEvent` is not implemented for `OwnerChangedFilter`
|
note: required by a bound in `ethers_contract::Contract::<M>::event`
--> /Users/jannis/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/contract.rs:167:21
|
167 | pub fn event<D: EthEvent>(&self) -> Event<M, D> {
| ^^^^^^^^ required by this bound in `ethers_contract::Contract::<M>::event`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `PoolCreatedFilter: EthEvent` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `EthEvent` is not implemented for `PoolCreatedFilter`
|
note: required by a bound in `ethers_contract::Contract::<M>::event`
--> /Users/jannis/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/contract.rs:167:21
|
167 | pub fn event<D: EthEvent>(&self) -> Event<M, D> {
| ^^^^^^^^ required by this bound in `ethers_contract::Contract::<M>::event`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the function or associated item `decode_log` exists for struct `FeeAmountEnabledFilter`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| function or associated item `decode_log` not found for this
| function or associated item cannot be called on `FeeAmountEnabledFilter` due to unsatisfied trait bounds
| doesn't satisfy `FeeAmountEnabledFilter: EthEvent`
| doesn't satisfy `FeeAmountEnabledFilter: EthLogDecode`
|
note: the following trait bounds were not satisfied because of the requirements of the implementation of `EthLogDecode` for `_`:
`FeeAmountEnabledFilter: EthEvent`
`&FeeAmountEnabledFilter: EthEvent`
`&mut FeeAmountEnabledFilter: EthEvent`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the following trait must be implemented
--> /Users/jannis/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/event.rs:11:1
|
11 | / pub trait EthEvent: Detokenize + Send + Sync {
12 | | /// The name of the event this type represents
13 | | fn name() -> Cow<'static, str>;
14 | |
... |
39 | | }
40 | | }
| |_^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `decode_log`, perhaps you need to implement it:
candidate #1: `EthEvent`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the function or associated item `decode_log` exists for struct `OwnerChangedFilter`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| function or associated item `decode_log` not found for this
| function or associated item cannot be called on `OwnerChangedFilter` due to unsatisfied trait bounds
| doesn't satisfy `OwnerChangedFilter: EthEvent`
| doesn't satisfy `OwnerChangedFilter: EthLogDecode`
|
note: the following trait bounds were not satisfied because of the requirements of the implementation of `EthLogDecode` for `_`:
`OwnerChangedFilter: EthEvent`
`&OwnerChangedFilter: EthEvent`
`&mut OwnerChangedFilter: EthEvent`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the following trait must be implemented
--> /Users/jannis/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/event.rs:11:1
|
11 | / pub trait EthEvent: Detokenize + Send + Sync {
12 | | /// The name of the event this type represents
13 | | fn name() -> Cow<'static, str>;
14 | |
... |
39 | | }
40 | | }
| |_^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `decode_log`, perhaps you need to implement it:
candidate #1: `EthEvent`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the function or associated item `decode_log` exists for struct `PoolCreatedFilter`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| function or associated item `decode_log` not found for this
| function or associated item cannot be called on `PoolCreatedFilter` due to unsatisfied trait bounds
| doesn't satisfy `PoolCreatedFilter: EthEvent`
| doesn't satisfy `PoolCreatedFilter: EthLogDecode`
|
note: the following trait bounds were not satisfied because of the requirements of the implementation of `EthLogDecode` for `_`:
`PoolCreatedFilter: EthEvent`
`&PoolCreatedFilter: EthEvent`
`&mut PoolCreatedFilter: EthEvent`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the following trait must be implemented
--> /Users/jannis/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/event.rs:11:1
|
11 | / pub trait EthEvent: Detokenize + Send + Sync {
12 | | /// The name of the event this type represents
13 | | fn name() -> Cow<'static, str>;
14 | |
... |
39 | | }
40 | | }
| |_^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `decode_log`, perhaps you need to implement it:
candidate #1: `EthEvent`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&FeeAmountEnabledFilter`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&FeeAmountEnabledFilter` due to unsatisfied trait bounds
| doesn't satisfy `FeeAmountEnabledFilter: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`FeeAmountEnabledFilter: std::fmt::Display`
which is required by `&FeeAmountEnabledFilter: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&OwnerChangedFilter`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&OwnerChangedFilter` due to unsatisfied trait bounds
| doesn't satisfy `OwnerChangedFilter: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`OwnerChangedFilter: std::fmt::Display`
which is required by `&OwnerChangedFilter: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&PoolCreatedFilter`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&PoolCreatedFilter` due to unsatisfied trait bounds
| doesn't satisfy `PoolCreatedFilter: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`PoolCreatedFilter: std::fmt::Display`
which is required by `&PoolCreatedFilter: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `CreatePoolCall: AbiDecode` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AbiDecode` is not implemented for `CreatePoolCall`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `EnableFeeAmountCall: AbiDecode` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AbiDecode` is not implemented for `EnableFeeAmountCall`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `FeeAmountTickSpacingCall: AbiDecode` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AbiDecode` is not implemented for `FeeAmountTickSpacingCall`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `GetPoolCall: AbiDecode` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AbiDecode` is not implemented for `GetPoolCall`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `OwnerCall: AbiDecode` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AbiDecode` is not implemented for `OwnerCall`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `SetOwnerCall: AbiDecode` is not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AbiDecode` is not implemented for `SetOwnerCall`
|
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `encode` found for struct `CreatePoolCall` in the current scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method `encode` not found for this
| method not found in `CreatePoolCall`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `encode`, perhaps you need to implement one of them:
candidate #1: `AbiEncode`
candidate #2: `parity_scale_codec::codec::Encode`
candidate #3: `der::encodable::Encodable`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `encode` found for struct `EnableFeeAmountCall` in the current scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method `encode` not found for this
| method not found in `EnableFeeAmountCall`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `encode`, perhaps you need to implement one of them:
candidate #1: `AbiEncode`
candidate #2: `parity_scale_codec::codec::Encode`
candidate #3: `der::encodable::Encodable`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `encode` found for struct `FeeAmountTickSpacingCall` in the current scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method `encode` not found for this
| method not found in `FeeAmountTickSpacingCall`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `encode`, perhaps you need to implement one of them:
candidate #1: `AbiEncode`
candidate #2: `parity_scale_codec::codec::Encode`
candidate #3: `der::encodable::Encodable`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `encode` found for struct `GetPoolCall` in the current scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method `encode` not found for this
| method not found in `GetPoolCall`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `encode`, perhaps you need to implement one of them:
candidate #1: `AbiEncode`
candidate #2: `parity_scale_codec::codec::Encode`
candidate #3: `der::encodable::Encodable`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `encode` found for struct `OwnerCall` in the current scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method `encode` not found for this
| method not found in `OwnerCall`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `encode`, perhaps you need to implement one of them:
candidate #1: `AbiEncode`
candidate #2: `parity_scale_codec::codec::Encode`
candidate #3: `der::encodable::Encodable`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `encode` found for struct `SetOwnerCall` in the current scope
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method `encode` not found for this
| method not found in `SetOwnerCall`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `encode`, perhaps you need to implement one of them:
candidate #1: `AbiEncode`
candidate #2: `parity_scale_codec::codec::Encode`
candidate #3: `der::encodable::Encodable`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&CreatePoolCall`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&CreatePoolCall` due to unsatisfied trait bounds
| doesn't satisfy `CreatePoolCall: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`CreatePoolCall: std::fmt::Display`
which is required by `&CreatePoolCall: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&EnableFeeAmountCall`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&EnableFeeAmountCall` due to unsatisfied trait bounds
| doesn't satisfy `EnableFeeAmountCall: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`EnableFeeAmountCall: std::fmt::Display`
which is required by `&EnableFeeAmountCall: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&FeeAmountTickSpacingCall`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&FeeAmountTickSpacingCall` due to unsatisfied trait bounds
| doesn't satisfy `FeeAmountTickSpacingCall: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`FeeAmountTickSpacingCall: std::fmt::Display`
which is required by `&FeeAmountTickSpacingCall: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&GetPoolCall`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&GetPoolCall` due to unsatisfied trait bounds
| doesn't satisfy `GetPoolCall: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`GetPoolCall: std::fmt::Display`
which is required by `&GetPoolCall: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&OwnerCall`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&OwnerCall` due to unsatisfied trait bounds
| doesn't satisfy `OwnerCall: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`OwnerCall: std::fmt::Display`
which is required by `&OwnerCall: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the method `fmt` exists for reference `&SetOwnerCall`, but its trait bounds were not satisfied
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| method cannot be called on `&SetOwnerCall` due to unsatisfied trait bounds
| doesn't satisfy `SetOwnerCall: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`SetOwnerCall: std::fmt::Display`
which is required by `&SetOwnerCall: std::fmt::Display`
note: the following trait must be implemented
--> /Users/jannis/.rustup/toolchains/1.58.0-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:702:1
|
702 | / pub trait Display {
703 | | /// Formats the value using the given formatter.
704 | | ///
705 | | /// # Examples
... |
725 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
726 | | }
| |_^
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use std::fmt::Debug;`
= note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0277, E0433, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `ethers-wasm` due to 34 previous errors
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment