Skip to content

Commit

Permalink
feat(accounts): add PaymasterParams and GasPerPubdata to `Transfe…
Browse files Browse the repository at this point in the history
…rCallMsg`
  • Loading branch information
danijelTxFusion committed Nov 5, 2024
1 parent d294db0 commit 8cf5594
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions accounts/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,25 @@ type TransferCallMsg struct {
GasPrice *big.Int // Wei <-> gas exchange ratio.
GasFeeCap *big.Int // EIP-1559 fee cap per gas.
GasTipCap *big.Int // EIP-1559 tip per gas.

PaymasterParams *types.PaymasterParams // The paymaster parameters.
// GasPerPubdata denotes the maximum amount of gas the user is willing
// to pay for a single byte of pubdata.
GasPerPubdata *big.Int
}

func (m *TransferCallMsg) ToTransferCallMsg(from common.Address) clients.TransferCallMsg {
return clients.TransferCallMsg{
To: m.To,
Amount: m.Amount,
Token: m.Token,
From: from,
Gas: m.Gas,
GasPrice: m.GasPrice,
GasFeeCap: m.GasFeeCap,
GasTipCap: m.GasTipCap,
To: m.To,
Amount: m.Amount,
Token: m.Token,
From: from,
Gas: m.Gas,
GasPrice: m.GasPrice,
GasFeeCap: m.GasFeeCap,
GasTipCap: m.GasTipCap,
PaymasterParams: m.PaymasterParams,
GasPerPubdata: m.GasPerPubdata,
}
}

Expand Down

0 comments on commit 8cf5594

Please sign in to comment.