@@ -279,7 +279,7 @@ func (t *Task) generateTransaction(ctx context.Context) (*ethtypes.Transaction,
279279 toAddr = & addr
280280 }
281281
282- txAmount := new (big.Int ).Set (& t .config .Amount .Int )
282+ txAmount := new (big.Int ).Set (& t .config .Amount .Value )
283283 if t .config .RandomAmount {
284284 n , err := rand .Int (rand .Reader , txAmount )
285285 if err == nil {
@@ -298,7 +298,7 @@ func (t *Task) generateTransaction(ctx context.Context) (*ethtypes.Transaction,
298298 case t .config .LegacyTxType :
299299 txObj = & ethtypes.LegacyTx {
300300 Nonce : nonce ,
301- GasPrice : & t .config .FeeCap .Int ,
301+ GasPrice : & t .config .FeeCap .Value ,
302302 Gas : t .config .GasLimit ,
303303 To : toAddr ,
304304 Value : txAmount ,
@@ -321,9 +321,9 @@ func (t *Task) generateTransaction(ctx context.Context) (*ethtypes.Transaction,
321321
322322 txObj = & ethtypes.BlobTx {
323323 Nonce : nonce ,
324- BlobFeeCap : uint256 .MustFromBig (& t .config .BlobFeeCap .Int ),
325- GasTipCap : uint256 .MustFromBig (& t .config .TipCap .Int ),
326- GasFeeCap : uint256 .MustFromBig (& t .config .FeeCap .Int ),
324+ BlobFeeCap : uint256 .MustFromBig (& t .config .BlobFeeCap .Value ),
325+ GasTipCap : uint256 .MustFromBig (& t .config .TipCap .Value ),
326+ GasFeeCap : uint256 .MustFromBig (& t .config .FeeCap .Value ),
327327 Gas : t .config .GasLimit ,
328328 To : * toAddr ,
329329 Value : uint256 .MustFromBig (txAmount ),
@@ -335,8 +335,8 @@ func (t *Task) generateTransaction(ctx context.Context) (*ethtypes.Transaction,
335335 txObj = & ethtypes.DynamicFeeTx {
336336 ChainID : t .ctx .Scheduler .GetServices ().ClientPool ().GetExecutionPool ().GetBlockCache ().GetChainID (),
337337 Nonce : nonce ,
338- GasTipCap : & t .config .TipCap .Int ,
339- GasFeeCap : & t .config .FeeCap .Int ,
338+ GasTipCap : & t .config .TipCap .Value ,
339+ GasFeeCap : & t .config .FeeCap .Value ,
340340 Gas : t .config .GasLimit ,
341341 To : toAddr ,
342342 Value : txAmount ,
0 commit comments