Skip to content

Commit

Permalink
feat: update bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 22, 2025
1 parent d1346e7 commit ef8562c
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 74 deletions.
2 changes: 1 addition & 1 deletion packages/taiko-client/bindings/pacaya/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e832ca5f2b29e0d96b85e55fe3e3b6c0c35ecab8
d1346e7ff43f8e1676bc3ad52518dbf024562a74
150 changes: 80 additions & 70 deletions packages/taiko-client/bindings/pacaya/gen_taiko_inbox.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func createPayloadAndSetHead(
}
} else {
if payload.Number > lastVerifiedTS.BlockId {
lastVerifiedBlockHash = lastVerifiedTS.Tran.BlockHash
lastVerifiedBlockHash = lastVerifiedTS.Ts.BlockHash
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/driver/chain_syncer/blob/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (s *Syncer) checkLastVerifiedBlockMismatch(ctx context.Context) (*rpc.Reorg
lastVerifiedBlockHash = blockInfo.BlockHash
} else {
lastVerifiedBlockID = ts.BlockId
lastVerifiedBlockHash = ts.Tran.BlockHash
lastVerifiedBlockHash = ts.Ts.BlockHash
}

if s.state.GetL2Head().Number.Uint64() < lastVerifiedBlockID {
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func (c *Client) GetLastVerifiedBlockOntake(ctx context.Context) (*struct {
func (c *Client) GetLastVerifiedTransitionPacaya(ctx context.Context) (*struct {
BatchId uint64 //nolint:stylecheck
BlockId uint64 //nolint:stylecheck
Tran pacayaBindings.ITaikoInboxTransition
Ts pacayaBindings.ITaikoInboxTransitionState
}, error) {
ctxWithTimeout, cancel := context.WithTimeout(ctx, defaultTimeout)
defer cancel()
Expand Down

0 comments on commit ef8562c

Please sign in to comment.