Skip to content

Commit

Permalink
change command to kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
lempire123 committed May 13, 2023
1 parent 6eb1bed commit a5288b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions scripts/simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,19 @@ aurora-cli --engine $ENGINE_ACCOUNT factory-set-wnear-address 0x80c6a002756e29b8
sleep 1
aurora-cli --engine $ENGINE_ACCOUNT fund-xcc-sub-account 0x43a4969cc2c22d0000c591ff4bd71983ea8a8be9 some_account.near 25.5 || error_exit
# Check that Silo methods work normally.
aurora-cli --engine $ENGINE_ACCOUNT SetFixedGasCost 1 || error_exit
result=$(aurora-cli --engine $ENGINE_ACCOUNT GetFixedGasCost || error_exit)
assert_eq "$result" "1"
aurora-cli --engine $ENGINE_ACCOUNT SetWhitelistStatus "EvmAdmin" true || error_exit
result=$(aurora-cli --engine $ENGINE_ACCOUNT GetWhitelistStatus "EvmAdmin" || error_exit)
assert_eq "$result" "true"
aurora-cli --engine $ENGINE_ACCOUNT SetWhitelistStatus "Address" false || error_exit
result=$(aurora-cli --engine $ENGINE_ACCOUNT GetWhitelistStatus "Address" || error_exit)
assert_eq "$result" "false"
aurora-cli --engine $ENGINE_ACCOUNT AddEntryToWhitelist "WhitelistAddressArgs" "Address" "0x1B16948F011686AE64BB2Ba0477aeFA2Ea97084D" || error_exit
# aurora-cli --engine $ENGINE_ACCOUNT AddEntryToWhitelistBatch || error_exit
aurora-cli --engine $ENGINE_ACCOUNT RemoveEntryFromWhitelist "WhitelistAddressArgs" "Address" "0x1B16948F011686AE64BB2Ba0477aeFA2Ea97084D" || error_exit
aurora-cli --engine $ENGINE_ACCOUNT set-fixed-gas-cost 1 || error-exit
result=$(aurora-cli --engine $ENGINE_ACCOUNT get-fixed-gas-cost || error-exit)
assert-eq "$result" "1"
aurora-cli --engine $ENGINE_ACCOUNT set-whitelist-status "evm-admin" true || error-exit
result=$(aurora-cli --engine $ENGINE_ACCOUNT get-whitelist-status "evm-admin" || error-exit)
assert-eq "$result" "true"
aurora-cli --engine $ENGINE_ACCOUNT set-whitelist-status "address" false || error-exit
result=$(aurora-cli --engine $ENGINE_ACCOUNT get-whitelist-status "address" || error-exit)
assert-eq "$result" "false"
aurora-cli --engine $ENGINE_ACCOUNT add-entry-to-whitelist "whitelist-address-args" "address" "0x1B16948F011686AE64BB2Ba0477aeFA2Ea97084D" || error-exit
# aurora-cli --engine $ENGINE_ACCOUNT add-entry-to-whitelist-batch || error-exit
aurora-cli --engine $ENGINE_ACCOUNT remove-entry-from-whitelist "whitelist-address-args" "address" "0x1B16948F011686AE64BB2Ba0477aeFA2Ea97084D" || error-exit


# Stop NEAR node and clean up.
finish
4 changes: 2 additions & 2 deletions src/cli/simple/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use aurora_engine::parameters::{
};
use aurora_engine::xcc::FundXccArgs;
use aurora_engine_sdk::types::near_account_to_evm_address;
use aurora_engine_silo::silo::parameters::{
use aurora_engine::silo::parameters::{
WhitelistAccountArgs, WhitelistAddressArgs, WhitelistArgs, WhitelistKind, WhitelistKindArgs,
WhitelistStatusArgs,
};
Expand Down Expand Up @@ -501,7 +501,7 @@ pub async fn get_fixed_gas_cost(client: Client) -> anyhow::Result<()> {
}

pub async fn set_fixed_gas_cost(client: Client, cost: u64) -> anyhow::Result<()> {
let args = Wei::new_u64(cost).try_to_vec()?;
let args = Wei::new_u64(cost).to_bytes().to_vec();

ContractCall {
method: "set_fixed_gas_cost",
Expand Down

0 comments on commit a5288b2

Please sign in to comment.