Skip to content

Commit

Permalink
lint missing use in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deuszex committed Feb 6, 2024
1 parent cb53924 commit 95270bf
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/src/migration.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use casper_engine_test_support::DEFAULT_ACCOUNT_ADDR;
use casper_types::runtime_args;
use casper_engine_test_support::{ExecuteRequestBuilder, DEFAULT_ACCOUNT_ADDR};
use casper_types::{runtime_args, ContractHash, RuntimeArgs, U256};

use crate::utility::{
constants::{
ARG_DECIMALS, ARG_NAME, ARG_SYMBOL, ARG_TOTAL_SUPPLY, CEP18_CONTRACT_WASM,
CEP18_TOKEN_CONTRACT_KEY, DECIMALS_KEY, NAME_KEY, SYMBOL_KEY, TOKEN_DECIMALS, TOKEN_NAME,
TOKEN_SYMBOL, TOKEN_TOTAL_SUPPLY, TOTAL_SUPPLY_KEY,
TOKEN_DECIMALS, TOKEN_NAME,
TOKEN_SYMBOL, TOKEN_TOTAL_SUPPLY,
},
installer_request_builders::setup,
installer_request_builders::{setup, TestContext},
};

#[test]
Expand All @@ -17,7 +17,7 @@ fn should_have_queryable_properties() {
.get_account(*DEFAULT_ACCOUNT_ADDR)
.expect("should have account");

let version_0 = account
let version_0 = pre_account
.named_keys()
.get("cep18_contract_version_CasperTest")
.and_then(|key| key.into_hash())
Expand All @@ -36,11 +36,13 @@ fn should_have_queryable_properties() {
)
.build();

builder.exec(install_request_1).expect_success().commit();

let post_account = builder
.get_account(*DEFAULT_ACCOUNT_ADDR)
.expect("should have account");

let version_1 = account
let version_1 = post_account
.named_keys()
.get("cep18_contract_version_CasperTest")
.and_then(|key| key.into_hash())
Expand Down

0 comments on commit 95270bf

Please sign in to comment.