Revert "solana/token_bridge: check balance and truncation"

Revert submission 1325

Reason for revert: not supporting external mints
Reverted Changes:
I2bf59ecd3:solana/token_bridge: calculate diff from original ...
I598373740:solana/token_bridge: check balance and truncation
I67c7a1c7a:solana/token_bridge: test wrapped asset transfers

Change-Id: I05a950e3142e0386351a67fc7d051000f3481c8b
This commit is contained in:
David Paryente 2021-09-10 12:03:42 +00:00 committed by Hendrik Hofstadt
parent 698091b2b1
commit 08fcb1e9ec
1 changed files with 1 additions and 14 deletions

View File

@ -43,7 +43,7 @@ use solitaire::{
processors::seeded::Seeded, processors::seeded::Seeded,
AccountState, AccountState,
}; };
use spl_token::state::{Account, Mint}; use spl_token::state::Mint;
use std::{ use std::{
convert::TryInto, convert::TryInto,
io::{ io::{
@ -794,19 +794,6 @@ fn test_transfer_in_wrapped_preexisting(context: &mut Context) {
payer, payer,
) )
.unwrap(); .unwrap();
let account_data = Account::unpack(
&client
.get_account_with_commitment(&external_token_account.pubkey(), CommitmentConfig::processed())
.unwrap()
.value
.unwrap()
.data,
)
.unwrap();
// Check truncation for external asset shrinks by the correct amount.
assert_eq!(1000, account_data.amount);
} }
fn test_transfer_wrapped_preexisting(context: &mut Context) { fn test_transfer_wrapped_preexisting(context: &mut Context) {