diff --git a/.github/scripts/run_smartnet.sh b/.github/scripts/run_smartnet.sh index 1a65cb68c0..d838711704 100755 --- a/.github/scripts/run_smartnet.sh +++ b/.github/scripts/run_smartnet.sh @@ -2,7 +2,7 @@ set -e -export NODE_IMAGE=public.ecr.aws/p6e8q1z1/feature-env-aleph-node:fe-benjamin_c643069 +export NODE_IMAGE=public.ecr.aws/p6e8q1z1/aleph-node:latest # key derived from "//0" export NODE_ID=5D34dL5prEUaGNQtPPZ3yN5Y6BnkfXunKXXz6fo7ZJbLwRRH diff --git a/contracts/simple_dex/lib.rs b/contracts/simple_dex/lib.rs index 3976e5a5a9..f774b7bbd9 100644 --- a/contracts/simple_dex/lib.rs +++ b/contracts/simple_dex/lib.rs @@ -429,7 +429,7 @@ mod simple_dex { balance_token_out .checked_sub(op4) // If the division is not even, leave the 1 unit of dust in the exchange instead of paying it out. - .and_then(|result| result.checked_sub(if op3 % op2 > 0 { 1 } else { 0 })) + .and_then(|result| result.checked_sub((op3 % op2 > 0).into())) .ok_or(DexError::Arithmethic) } diff --git a/docker/smartnet-compose.yml b/docker/smartnet-compose.yml index bee3b91850..0dc1148ccc 100644 --- a/docker/smartnet-compose.yml +++ b/docker/smartnet-compose.yml @@ -16,7 +16,7 @@ services: - PURGE_BEFORE_START=true - RPC_PORT=9933 - RUST_LOG=info - - UNIT_CREATION_DELAY=50 + - UNIT_CREATION_DELAY=300 - WS_PORT=9943 - BOOT_NODES=/ip4/127.0.0.1/tcp/30333/p2p/$BOOTNODE_PEER_ID - PUBLIC_ADDR=/ip4/127.0.0.1/tcp/30333 diff --git a/scripts/run_checks_on_excluded_packages.sh b/scripts/run_checks_on_excluded_packages.sh index 6b8414b30c..1524b2c81e 100755 --- a/scripts/run_checks_on_excluded_packages.sh +++ b/scripts/run_checks_on_excluded_packages.sh @@ -10,6 +10,14 @@ packages=( "fork-off" "benches/payout-stakers" "bin/cliain" + "contracts/access_control" + "contracts/button" + "contracts/game_token" + "contracts/marketplace" + "contracts/simple_dex" + "contracts/ticket_token" + "contracts/wrapped_azero" + "contracts/adder, " ) for p in ${packages[@]}