Skip to content

Commit

Permalink
Fix a couple missed name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanoroshiba committed Sep 10, 2024
1 parent 2decffc commit 089f588
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions core/types/deposit_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ type DepositTx struct {
Data []byte
// the transaction ID of the source action for the deposit, consisting
// of the transaction hash.
IdOfSourceTransaction primitivev1.TransactionId
SourceTransactionId primitivev1.TransactionId
// index of the deposit's source action within its transaction
PositionInSourceTransaction uint64
SourceTransactionIndex uint64
}

func (tx *DepositTx) copy() TxData {
Expand All @@ -44,8 +44,8 @@ func (tx *DepositTx) copy() TxData {
Gas: tx.Gas,
To: to,
Data: make([]byte, len(tx.Data)),
IdOfSourceTransaction: tx.IdOfSourceTransaction,
PositionInSourceTransaction: tx.PositionInSourceTransaction,
SourceTransactionId: tx.SourceTransactionId,
SourceTransactionIndex: tx.SourceTransactionIndex,
}

if tx.Value != nil {
Expand Down
8 changes: 4 additions & 4 deletions grpc/execution/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func validateAndUnmarshalSequencerTx(
Gas: 16000,
To: &bac.Erc20Asset.ContractAddress,
Data: calldata,
IdOfSourceTransaction: *deposit.SourceTransactionId,
PositionInSourceTransaction: deposit.SourceActionIndex,
SourceTransactionId: *deposit.SourceTransactionId,
SourceTransactionIndex: deposit.SourceActionIndex,
}

tx := types.NewTx(&txdata)
Expand All @@ -83,8 +83,8 @@ func validateAndUnmarshalSequencerTx(
To: &recipient,
Value: amount,
Gas: 0,
IdOfSourceTransaction: *deposit.SourceTransactionId,
PositionInSourceTransaction: deposit.SourceActionIndex,
SourceTransactionId: *deposit.SourceTransactionId,
SourceTransactionIndex: deposit.SourceActionIndex,
}
return types.NewTx(&txdata), nil
} else {
Expand Down

0 comments on commit 089f588

Please sign in to comment.