Skip to content

Lottery SC audit fixes #2264

Lottery SC audit fixes

Lottery SC audit fixes #2264

Triggered via pull request September 25, 2024 06:46
Status Success
Total duration 10m 34s
Artifacts

template-test-current.yml

on: pull_request
Template tool test - current (unreleased) templates
10m 26s
Template tool test - current (unreleased) templates
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L167: contracts/examples/lottery-esdt/src/lottery.rs#L167
warning: unused variable: `sc_address_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:167:13 | 167 | let sc_address_shard = self.blockchain().get_shard_of_address(&sc_address); | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sc_address_shard` | = note: `#[warn(unused_variables)]` on by default
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L169: contracts/examples/lottery-esdt/src/lottery.rs#L169
warning: unused variable: `caller_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:169:13 | 169 | let caller_shard = self.blockchain().get_shard_of_address(&caller); | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller_shard`
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L167: contracts/examples/lottery-esdt/src/lottery.rs#L167
warning: unused variable: `sc_address_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:167:13 | 167 | let sc_address_shard = self.blockchain().get_shard_of_address(&sc_address); | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sc_address_shard` | = note: `#[warn(unused_variables)]` on by default
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L169: contracts/examples/lottery-esdt/src/lottery.rs#L169
warning: unused variable: `caller_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:169:13 | 169 | let caller_shard = self.blockchain().get_shard_of_address(&caller); | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller_shard`
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L167: contracts/examples/lottery-esdt/src/lottery.rs#L167
warning: unused variable: `sc_address_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:167:13 | 167 | let sc_address_shard = self.blockchain().get_shard_of_address(&sc_address); | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sc_address_shard` | = note: `#[warn(unused_variables)]` on by default
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L169: contracts/examples/lottery-esdt/src/lottery.rs#L169
warning: unused variable: `caller_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:169:13 | 169 | let caller_shard = self.blockchain().get_shard_of_address(&caller); | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller_shard`
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L167: contracts/examples/lottery-esdt/src/lottery.rs#L167
warning: unused variable: `sc_address_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:167:13 | 167 | let sc_address_shard = self.blockchain().get_shard_of_address(&sc_address); | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sc_address_shard` | = note: `#[warn(unused_variables)]` on by default
[clippy] contracts/examples/lottery-esdt/src/lottery.rs#L169: contracts/examples/lottery-esdt/src/lottery.rs#L169
warning: unused variable: `caller_shard` --> contracts/examples/lottery-esdt/src/lottery.rs:169:13 | 169 | let caller_shard = self.blockchain().get_shard_of_address(&caller); | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller_shard`
Template tool test - current (unreleased) templates
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Template tool test - current (unreleased) templates
Unexpected input(s) 'default', valid inputs are ['toolchain', 'target', 'components', 'cache', 'cache-workspaces', 'cache-directories', 'cache-on-failure', 'cache-key', 'matcher', 'rustflags', 'override']
Template tool test - current (unreleased) templates
Unexpected input(s) 'default', valid inputs are ['toolchain', 'target', 'components', 'cache', 'cache-workspaces', 'cache-directories', 'cache-on-failure', 'cache-key', 'matcher', 'rustflags', 'override']