Skip to content

Commit

Permalink
feat: update api backend
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Feb 4, 2025
1 parent d44ab28 commit 54ca219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethclient/taiko_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func (ec *Client) HeadL1Origin(ctx context.Context) (*rawdb.L1Origin, error) {
}

// WriteHeadL1Origin sets the latest L2 block's corresponding L1 origin.
func (ec *Client) WriteHeadL1Origin(ctx context.Context, blockID *big.Int) (*rawdb.L1Origin, error) {
var res *rawdb.L1Origin
func (ec *Client) WriteHeadL1Origin(ctx context.Context, blockID *big.Int) (*big.Int, error) {
var res *big.Int

if err := ec.c.CallContext(ctx, &res, "taiko_setHeadL1Origin", blockID); err != nil {
return nil, err
Expand Down

0 comments on commit 54ca219

Please sign in to comment.