This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ func (b *BuilderClient) SendUserOperation() modules.BatchHandlerFunc {
78
78
}
79
79
blkNum := big .NewInt (0 ).SetUint64 (bn )
80
80
NxtBlkNum := big .NewInt (0 ).Add (blkNum , big .NewInt (1 ))
81
- blk , _ := b .eth .BlockByNumber (context .Background (), blkNum )
81
+ blk , err := b .eth .HeaderByNumber (context .Background (), blkNum )
82
82
if err != nil {
83
83
return err
84
84
}
85
- mbf := blk .BaseFee ()
85
+ mbf := blk .BaseFee
86
86
for i := 0 ; i < b .blocksInTheFuture ; i ++ {
87
87
a := big .NewInt (0 ).Mul (mbf , big .NewInt (1125 ))
88
88
b := big .NewInt (0 ).Div (a , big .NewInt (1000 ))
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ func getBaseFeeWithEthClient(eth *ethclient.Client) GetBaseFeeFunc {
54
54
return nil , err
55
55
}
56
56
57
- blk , _ := eth .BlockByNumber (context .Background (), big .NewInt (0 ).SetUint64 (bn ))
57
+ blk , err := eth .HeaderByNumber (context .Background (), big .NewInt (0 ).SetUint64 (bn ))
58
58
if err != nil {
59
59
return nil , err
60
60
}
61
- return blk .BaseFee () , nil
61
+ return blk .BaseFee , nil
62
62
}
63
63
}
You can’t perform that action at this time.
0 commit comments