From 56972b16c2d394ec3fd499a7b88d6089a701ae3b Mon Sep 17 00:00:00 2001 From: Evgeny Kuzyakov Date: Fri, 18 Sep 2020 09:48:05 -0700 Subject: [PATCH] Update spec test, but because JSON just ignores the args, it was not an error --- lockup/tests/spec.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lockup/tests/spec.rs b/lockup/tests/spec.rs index aace3644..92cf650f 100644 --- a/lockup/tests/spec.rs +++ b/lockup/tests/spec.rs @@ -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; @@ -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 = call_lockup(&r, "get_termination_status", "");