Skip to content

Commit

Permalink
remove amount check in native transfer cluster test case (MystenLabs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
longbowlu authored Sep 18, 2022
1 parent bee2098 commit 2aebfd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crates/sui-cluster-test/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl TransferObjectEventChecker {
assert_eq_if_present!(self.object_id, object_id, "object_id");
assert_eq_if_present!(self.version, version, "version");
assert_eq_if_present!(self.type_, type_, "type_");
assert_eq!(self.amount, *amount);
assert_eq_if_present!(self.amount, amount.as_ref().unwrap(), "amount");
} else {
panic!("event {:?} is not TransferObject Event", event);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ impl TestCaseImpl for NativeTransferTest {
.recipient(Owner::AddressOwner(recipient_addr))
.object_id(*obj_to_transfer.id())
.type_(TransferType::Coin)
.amount(50000)
.check(&event);

// Verify fullnode observes the txn
Expand Down

0 comments on commit 2aebfd6

Please sign in to comment.