Skip to content

Commit

Permalink
Merge pull request ethereum#112 from OffchainLabs/arb-deposit-from
Browse files Browse the repository at this point in the history
Add From field to Arbitrum Deposit Tx
  • Loading branch information
PlasmaPower authored Jun 17, 2022
2 parents f214d2c + 86e5ab6 commit 77902b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/types/arb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func (tx *ArbitrumSubmitRetryableTx) data() []byte {
type ArbitrumDepositTx struct {
ChainId *big.Int
L1RequestId common.Hash
From common.Address
To common.Address
Value *big.Int
}
Expand All @@ -314,6 +315,7 @@ func (d *ArbitrumDepositTx) copy() TxData {
tx := &ArbitrumDepositTx{
ChainId: new(big.Int),
L1RequestId: d.L1RequestId,
From: d.From,
To: d.To,
Value: new(big.Int),
}
Expand Down
2 changes: 1 addition & 1 deletion core/types/arbitrum_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (s arbitrumSigner) Sender(tx *Transaction) (common.Address, error) {
case *ArbitrumContractTx:
return inner.From, nil
case *ArbitrumDepositTx:
return ArbosAddress, nil
return inner.From, nil
case *ArbitrumInternalTx:
return ArbosAddress, nil
case *ArbitrumRetryTx:
Expand Down

0 comments on commit 77902b6

Please sign in to comment.