feat: add erc1155 supply extension #1364
Triggered via pull request
November 27, 2024 08:07
Status
Success
Total duration
15m 56s
Artifacts
–
Annotations
12 warnings
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L4:
contracts/src/token/erc1155/extensions/supply.rs#L4
warning: item in documentation is missing backticks
--> contracts/src/token/erc1155/extensions/supply.rs:4:39
|
4 | //! clearly identified. Note: While a total_supply of 1 might mean the
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
4 | //! clearly identified. Note: While a `total_supply` of 1 might mean the
| ~~~~~~~~~~~~~~
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L220:
contracts/src/token/erc1155/extensions/supply.rs#L220
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:220:15
|
220 | data: Bytes,
| ^^^^^ help: consider taking a reference instead: `&Bytes`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
= note: `-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]`
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L281:
contracts/src/token/erc1155/extensions/supply.rs#L281
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:281:15
|
281 | data: Bytes,
| ^^^^^ help: consider taking a reference instead: `&Bytes`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L325:
contracts/src/token/erc1155/extensions/supply.rs#L325
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:325:20
|
325 | token_ids: Vec<U256>,
| ^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
help: consider changing the type to
|
325 | token_ids: &[U256],
| ~~~~~~~
help: change `token_ids.clone()` to
|
328 | self.erc1155._update(from, to, token_ids.to_owned(), values.clone())?;
| ~~~~~~~~~~~~~~~~~~~~
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L326:
contracts/src/token/erc1155/extensions/supply.rs#L326
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:326:17
|
326 | values: Vec<U256>,
| ^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
help: consider changing the type to
|
326 | values: &[U256],
| ~~~~~~~
help: change `values.clone()` to
|
328 | self.erc1155._update(from, to, token_ids.clone(), values.to_owned())?;
| ~~~~~~~~~~~~~~~~~
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L46:
contracts/src/token/erc1155/extensions/supply.rs#L46
warning: unexpected `cfg` condition value: `export-abi`
--> contracts/src/token/erc1155/extensions/supply.rs:46:1
|
46 | #[public]
| ^^^^^^^^^
|
= note: expected values for `feature` are: `std`
= help: consider adding `export-abi` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the attribute macro `public` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L4:
contracts/src/token/erc1155/extensions/supply.rs#L4
warning: item in documentation is missing backticks
--> contracts/src/token/erc1155/extensions/supply.rs:4:39
|
4 | //! clearly identified. Note: While a total_supply of 1 might mean the
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
4 | //! clearly identified. Note: While a `total_supply` of 1 might mean the
| ~~~~~~~~~~~~~~
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L220:
contracts/src/token/erc1155/extensions/supply.rs#L220
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:220:15
|
220 | data: Bytes,
| ^^^^^ help: consider taking a reference instead: `&Bytes`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
= note: `-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]`
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L281:
contracts/src/token/erc1155/extensions/supply.rs#L281
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:281:15
|
281 | data: Bytes,
| ^^^^^ help: consider taking a reference instead: `&Bytes`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L325:
contracts/src/token/erc1155/extensions/supply.rs#L325
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:325:20
|
325 | token_ids: Vec<U256>,
| ^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
help: consider changing the type to
|
325 | token_ids: &[U256],
| ~~~~~~~
help: change `token_ids.clone()` to
|
328 | self.erc1155._update(from, to, token_ids.to_owned(), values.clone())?;
| ~~~~~~~~~~~~~~~~~~~~
|
[clippy] contracts/src/token/erc1155/extensions/supply.rs#L326:
contracts/src/token/erc1155/extensions/supply.rs#L326
warning: this argument is passed by value, but not consumed in the function body
--> contracts/src/token/erc1155/extensions/supply.rs:326:17
|
326 | values: Vec<U256>,
| ^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
help: consider changing the type to
|
326 | values: &[U256],
| ~~~~~~~
help: change `values.clone()` to
|
328 | self.erc1155._update(from, to, token_ids.clone(), values.to_owned())?;
| ~~~~~~~~~~~~~~~~~
|
[clippy] examples/erc1155-supply/src/lib.rs#L20:
examples/erc1155-supply/src/lib.rs#L20
warning: unexpected `cfg` condition value: `export-abi`
--> examples/erc1155-supply/src/lib.rs:20:1
|
20 | #[public]
| ^^^^^^^^^
|
= note: expected values for `feature` are: `e2e`
= help: consider adding `export-abi` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
= note: this warning originates in the attribute macro `public` (in Nightly builds, run with -Z macro-backtrace for more info)
|