Skip to content

feat: SafeErc20 utility #1143

feat: SafeErc20 utility

feat: SafeErc20 utility #1143

Re-run triggered September 27, 2024 16:40
Status Failure
Total duration 1m 21s
Artifacts

check.yml

on: pull_request
nightly / fmt
13s
nightly / fmt
nightly / doc
35s
nightly / doc
ubuntu / stable / features
1m 5s
ubuntu / stable / features
ubuntu / stable / typos
3s
ubuntu / stable / typos
Matrix: clippy
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 18 warnings
ubuntu / stable / typos
Process completed with exit code 2.
nightly / fmt
Process completed with exit code 1.
nightly / doc
Process completed with exit code 101.
ubuntu / stable / typos: examples/safe-erc20/tests/has_no_code.rs#L106
"descrease" should be "decrease".
ubuntu / stable / typos: examples/safe-erc20/tests/has_no_code.rs#L111
"descrease" should be "decrease".
stable / clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L10
[clippy] reported by reviewdog 🐶 warning: unused import: `sol_interface` --> contracts/src/token/erc20/utils/safe_erc20.rs:10:27 | 10 | use stylus_proc::{public, sol_interface, sol_storage, SolidityError}; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:10:27:w:warning: unused import: `sol_interface` --> contracts/src/token/erc20/utils/safe_erc20.rs:10:27 | 10 | use stylus_proc::{public, sol_interface, sol_storage, SolidityError}; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default __END__
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L105
[clippy] reported by reviewdog 🐶 warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:105:9 | 105 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` | = note: `#[warn(unused_variables)]` on by default Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:105:9:w:warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:105:9 | 105 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` | = note: `#[warn(unused_variables)]` on by default __END__
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L106
[clippy] reported by reviewdog 🐶 warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:106:9 | 106 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:106:9:w:warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:106:9 | 106 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` __END__
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L107
[clippy] reported by reviewdog 🐶 warning: unused variable: `value` --> contracts/src/token/erc20/utils/safe_erc20.rs:107:9 | 107 | value: U256, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:107:9:w:warning: unused variable: `value` --> contracts/src/token/erc20/utils/safe_erc20.rs:107:9 | 107 | value: U256, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` __END__
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L116
[clippy] reported by reviewdog 🐶 warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:116:9 | 116 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:116:9:w:warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:116:9 | 116 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` __END__
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L117
[clippy] reported by reviewdog 🐶 warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:117:9 | 117 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:117:9:w:warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:117:9 | 117 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` __END__
stable / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L118
[clippy] reported by reviewdog 🐶 warning: unused variable: `requested_decrease` --> contracts/src/token/erc20/utils/safe_erc20.rs:118:9 | 118 | requested_decrease: U256, | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requested_decrease` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:118:9:w:warning: unused variable: `requested_decrease` --> contracts/src/token/erc20/utils/safe_erc20.rs:118:9 | 118 | requested_decrease: U256, | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requested_decrease` __END__
beta / clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L10
[clippy] reported by reviewdog 🐶 warning: unused import: `sol_interface` --> contracts/src/token/erc20/utils/safe_erc20.rs:10:27 | 10 | use stylus_proc::{public, sol_interface, sol_storage, SolidityError}; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:10:27:w:warning: unused import: `sol_interface` --> contracts/src/token/erc20/utils/safe_erc20.rs:10:27 | 10 | use stylus_proc::{public, sol_interface, sol_storage, SolidityError}; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default __END__
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L105
[clippy] reported by reviewdog 🐶 warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:105:9 | 105 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` | = note: `#[warn(unused_variables)]` on by default Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:105:9:w:warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:105:9 | 105 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` | = note: `#[warn(unused_variables)]` on by default __END__
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L106
[clippy] reported by reviewdog 🐶 warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:106:9 | 106 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:106:9:w:warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:106:9 | 106 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` __END__
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L107
[clippy] reported by reviewdog 🐶 warning: unused variable: `value` --> contracts/src/token/erc20/utils/safe_erc20.rs:107:9 | 107 | value: U256, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:107:9:w:warning: unused variable: `value` --> contracts/src/token/erc20/utils/safe_erc20.rs:107:9 | 107 | value: U256, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` __END__
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L116
[clippy] reported by reviewdog 🐶 warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:116:9 | 116 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:116:9:w:warning: unused variable: `token` --> contracts/src/token/erc20/utils/safe_erc20.rs:116:9 | 116 | token: Address, | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` __END__
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L117
[clippy] reported by reviewdog 🐶 warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:117:9 | 117 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:117:9:w:warning: unused variable: `spender` --> contracts/src/token/erc20/utils/safe_erc20.rs:117:9 | 117 | spender: Address, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender` __END__
beta / clippy: contracts/src/token/erc20/utils/safe_erc20.rs#L118
[clippy] reported by reviewdog 🐶 warning: unused variable: `requested_decrease` --> contracts/src/token/erc20/utils/safe_erc20.rs:118:9 | 118 | requested_decrease: U256, | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requested_decrease` Raw Output: contracts/src/token/erc20/utils/safe_erc20.rs:118:9:w:warning: unused variable: `requested_decrease` --> contracts/src/token/erc20/utils/safe_erc20.rs:118:9 | 118 | requested_decrease: U256, | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requested_decrease` __END__