Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 committed Nov 5, 2024
1 parent f24bbe3 commit 824fe9b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/taiko-client--docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Build and Push Multi-Arch Docker Image"

on:
push:
branches: [main]
branches: [test1]
tags:
- "taiko-client-v*"
paths:
Expand Down
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
Expand Up @@ -2,6 +2,7 @@ package rpc

import (
"context"
"errors"
"math/big"
"os"
"os/signal"
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 824fe9b

Please sign in to comment.