Skip to content

Commit

Permalink
fixed withdrawal amount signing
Browse files Browse the repository at this point in the history
  • Loading branch information
slbmax committed Oct 14, 2024
1 parent bbc0a0d commit e2f28aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/bridge/proxy/evm/operations/erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewWithdrawERC20Content(event data.DepositData) (*WithdrawERC20Content, err
}

return &WithdrawERC20Content{
Amount: ToBytes32(event.DepositAmount.Bytes()),
Amount: ToBytes32(event.WithdrawalAmount.Bytes()),
Receiver: hexutil.MustDecode(event.DestinationAddress),
TxHash: hexutil.MustDecode(event.TxHash),
TxNonce: IntToBytes32(event.TxEventId),
Expand Down
2 changes: 1 addition & 1 deletion internal/bridge/proxy/evm/operations/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewWithdrawNativeContent(event data.DepositData) (*WithdrawNativeContent, e
}

return &WithdrawNativeContent{
Amount: ToBytes32(event.DepositAmount.Bytes()),
Amount: ToBytes32(event.WithdrawalAmount.Bytes()),
Receiver: hexutil.MustDecode(event.DestinationAddress),
TxHash: hexutil.MustDecode(event.TxHash),
TxNonce: IntToBytes32(event.TxEventId),
Expand Down

0 comments on commit e2f28aa

Please sign in to comment.