Skip to content

Commit d677404

Browse files
authored
fix(eth): return correct type on SetBatchToLastBlock (#482)
1 parent a9ab08f commit d677404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/taiko_api_backend.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ func (a *TaikoAuthAPIBackend) SetHeadL1Origin(blockID *math.HexOrDecimal256) *he
173173
func (a *TaikoAuthAPIBackend) SetBatchToLastBlock(
174174
batchID *math.HexOrDecimal256,
175175
blockID *math.HexOrDecimal256,
176-
) *big.Int {
176+
) *hexutil.Big {
177177
rawdb.WriteBatchToLastBlockID(a.eth.ChainDb(), (*big.Int)(batchID), (*big.Int)(blockID))
178-
return (*big.Int)(batchID)
178+
return (*hexutil.Big)(batchID)
179179
}
180180

181181
// UpdateL1Origin updates the L2 block's corresponding L1 origin.

0 commit comments

Comments
 (0)