Skip to content

Commit

Permalink
Update spec test, but because JSON just ignores the args, it was not …
Browse files Browse the repository at this point in the history
…an error
  • Loading branch information
Evgeny Kuzyakov committed Sep 18, 2020
1 parent 0d7d33e commit 56972b1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions lockup/tests/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use near_primitives::transaction::ExecutionStatus;
use near_primitives::types::Balance;
use near_runtime_standalone::RuntimeStandalone;
use near_sdk::borsh::BorshSerialize;
use near_sdk::json_types::{Base58PublicKey, Base64VecU8, U128};
use near_sdk::json_types::{Base58PublicKey, U128};
use near_sdk::serde_json::{self, json};
use near_sdk::AccountId;
use std::convert::TryInto;
Expand Down Expand Up @@ -955,16 +955,7 @@ fn termination_with_staking() {
r.current_block().block_timestamp = start_timestamp + 1499;

foundation
.function_call(
&mut r,
LOCKUP_ACCOUNT_ID,
"terminate_vesting",
&serde_json::to_vec(&json!({
"vesting_schedule": vesting_schedule,
"salt": Base64VecU8::from(vec![])
}))
.unwrap(),
)
.function_call(&mut r, LOCKUP_ACCOUNT_ID, "terminate_vesting", b"{}")
.unwrap();

let res: Option<TerminationStatus> = call_lockup(&r, "get_termination_status", "");
Expand Down

0 comments on commit 56972b1

Please sign in to comment.