Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(taiko-client): compatible changes for lastProposedIn #18442

Merged
merged 6 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test
  • Loading branch information
YoGhurt111 committed Nov 5, 2024
commit 659dce5fd5f9e714d1074719303b29ea870fb000
2 changes: 1 addition & 1 deletion .github/workflows/taiko-client--docker.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: "Build and Push Multi-Arch Docker Image"

on:
push:
branches: [main]
branches: [test1]
tags:
- "taiko-client-v*"
paths:
25 changes: 25 additions & 0 deletions packages/taiko-client/bindings/gen_taiko_l1.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion packages/taiko-client/pkg/rpc/utils.go
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ package rpc

import (
"context"
"errors"
"math/big"
"os"
"os/signal"
@@ -31,6 +32,7 @@ var (
syscall.SIGTERM,
syscall.SIGQUIT,
}
ErrSlotBMarshal = errors.New("abi: cannot marshal in to go type: length insufficient 160 require 192")
)

// GetProtocolConfigs gets the protocol configs from TaikoL1 contract.
@@ -65,7 +67,12 @@ func GetProtocolStateVariables(

slotA, slotB, err := taikoL1Client.GetStateVariables(opts)
if err != nil {
return nil, err
if errors.Is(err, ErrSlotBMarshal) {
slotA, slotB, err = taikoL1Client.GetStateVariables(opts)
}
if err != nil {
return nil, err
}
}
return &struct {
A bindings.TaikoDataSlotA