Skip to content

Commit

Permalink
Remove unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Apr 24, 2024
1 parent ebb4cda commit 57a89f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/evilwallet/evilwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ func (e *EvilWallet) PrepareAndPostBlockWithPayload(ctx context.Context, clt mod
return blockID, nil
}

func (e *EvilWallet) PrepareAndPostBlockWithTxBuildDataAwait(ctx context.Context, clt models.Client, txBuilder *builder.TransactionBuilder, issuer wallet.Account, strongParents ...iotago.BlockID) (iotago.BlockID, error) {
blockID, _, err := e.PrepareAndPostBlockWithTxBuildData(ctx, clt, txBuilder, issuer, strongParents...)
func (e *EvilWallet) PrepareAndPostBlockWithTxBuildDataAwait(ctx context.Context, clt models.Client, txBuilder *builder.TransactionBuilder, issuer wallet.Account) (iotago.BlockID, error) {
blockID, _, err := e.PrepareAndPostBlockWithTxBuildData(ctx, clt, txBuilder, issuer)
if err != nil {
return iotago.EmptyBlockID, err
}
Expand All @@ -154,7 +154,7 @@ func (e *EvilWallet) PrepareAndPostBlockWithTxBuildDataAwait(ctx context.Context
return blockID, nil
}

func (e *EvilWallet) PrepareAndPostBlockWithTxBuildData(ctx context.Context, clt models.Client, txBuilder *builder.TransactionBuilder, issuer wallet.Account, strongParents ...iotago.BlockID) (iotago.BlockID, *iotago.Transaction, error) {
func (e *EvilWallet) PrepareAndPostBlockWithTxBuildData(ctx context.Context, clt models.Client, txBuilder *builder.TransactionBuilder, issuer wallet.Account) (iotago.BlockID, *iotago.Transaction, error) {
congestionResp, issuerResp, version, err := e.accManager.RequestBlockIssuanceData(ctx, clt, issuer)
if err != nil {
return iotago.EmptyBlockID, nil, ierrors.Wrap(err, "failed to get block built data")
Expand All @@ -177,7 +177,7 @@ func (e *EvilWallet) PrepareAndPostBlockWithTxBuildData(ctx context.Context, clt
return iotago.EmptyBlockID, nil, ierrors.Wrapf(err, "failed to set output ids for transaction %s", txID.String())
}

blockID, err := e.accManager.PostWithBlock(ctx, clt, signedTx, issuer, congestionResp, issuerResp, version, strongParents...)
blockID, err := e.accManager.PostWithBlock(ctx, clt, signedTx, issuer, congestionResp, issuerResp, version)
if err != nil {
return iotago.EmptyBlockID, nil, err
}
Expand Down

0 comments on commit 57a89f6

Please sign in to comment.