Skip to content

Commit ec5d786

Browse files
committed
Removes useless gas payer in integration tests
1 parent 8aa426e commit ec5d786

File tree

1 file changed

+3
-12
lines changed
  • crates/tests/src/integration

1 file changed

+3
-12
lines changed

crates/tests/src/integration/masp.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,7 +3936,7 @@ fn masp_tx_expiration_first_invalid_block_height() -> Result<()> {
39363936
_ = node.next_epoch();
39373937

39383938
// Initialize accounts we can access the secret keys of
3939-
let (cooper_alias, cooper_key) =
3939+
let (_, cooper_key) =
39403940
make_temp_account(&node, validator_one_rpc, "Cooper", NAM, 500_000)?;
39413941

39423942
// 1. Shield tokens
@@ -3984,8 +3984,6 @@ fn masp_tx_expiration_first_invalid_block_height() -> Result<()> {
39843984
NAM,
39853985
"--amount",
39863986
"50",
3987-
"--gas-payer",
3988-
cooper_alias,
39893987
// We want to create an expired masp tx. Doing so will also set
39903988
// the expiration field of the header which can
39913989
// be a problem because this would lead to the
@@ -4120,7 +4118,7 @@ fn masp_tx_expiration_first_invalid_block_height_with_fee_payment() -> Result<()
41204118

41214119
// Initialize account we can access the secret keys of. The account must
41224120
// have no balance to be used as a disposable gas payer
4123-
let (cooper_alias, cooper_key) =
4121+
let (_, cooper_key) =
41244122
make_temp_account(&node, validator_one_rpc, "Cooper", NAM, 0)?;
41254123

41264124
// 1. Shield tokens
@@ -4168,10 +4166,6 @@ fn masp_tx_expiration_first_invalid_block_height_with_fee_payment() -> Result<()
41684166
NAM,
41694167
"--amount",
41704168
"50",
4171-
// This gas payer has no funds so we are going to use it as a
4172-
// disposable gas payer via the MASP
4173-
"--gas-payer",
4174-
cooper_alias,
41754169
// We want to create an expired masp tx. Doing so will also set
41764170
// the expiration field of the header which can
41774171
// be a problem because this would lead to the
@@ -4284,7 +4278,7 @@ fn masp_tx_expiration_last_valid_block_height() -> Result<()> {
42844278
_ = node.next_epoch();
42854279

42864280
// Initialize accounts we can access the secret keys of
4287-
let (cooper_alias, cooper_key) =
4281+
let (_, cooper_key) =
42884282
make_temp_account(&node, validator_one_rpc, "Cooper", NAM, 500_000)?;
42894283

42904284
// 1. Shield tokens
@@ -4332,9 +4326,6 @@ fn masp_tx_expiration_last_valid_block_height() -> Result<()> {
43324326
NAM,
43334327
"--amount",
43344328
"50",
4335-
// FIXME: can avoid gas payer since dumping?
4336-
"--gas-payer",
4337-
cooper_alias,
43384329
// We want to create an expired masp tx. Doing so will also set
43394330
// the expiration field of the header which can
43404331
// be a problem because this would lead to the

0 commit comments

Comments
 (0)