Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into switch-to-use-gar
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Apr 21, 2024
2 parents 5239d8f + b96dc31 commit c2b6db4
Show file tree
Hide file tree
Showing 9 changed files with 618 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bindings/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3049b0c96812d8994117e3bda3bb56c1772b12a3
00f8954536c3572fe0062b7de0a9537921f38323
2 changes: 1 addition & 1 deletion bindings/gen_lib_verifying.go

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

276 changes: 274 additions & 2 deletions bindings/gen_taiko_l1.go

Large diffs are not rendered by default.

305 changes: 304 additions & 1 deletion bindings/gen_taiko_l2.go

Large diffs are not rendered by default.

33 changes: 32 additions & 1 deletion bindings/gen_taiko_token.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions driver/state/l1_current.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package state

import (
"context"
"fmt"
"errors"
"math/big"

"github.com/ethereum/go-ethereum/common"
Expand All @@ -29,7 +29,7 @@ func (s *State) SetL1Current(h *types.Header) {
// BlockProposed event with given blockID / blockHash.
func (s *State) ResetL1Current(ctx context.Context, blockID *big.Int) error {
if blockID == nil {
return fmt.Errorf("empty block ID")
return errors.New("empty block ID")
}

log.Info("Reset L1 current cursor", "blockID", blockID)
Expand Down
2 changes: 1 addition & 1 deletion integration_test/l1_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export TAIKO_TOKEN_PREMINT_RECIPIENT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export TAIKO_TOKEN_NAME="Taiko Token Test"
export TAIKO_TOKEN_SYMBOL="TTKOt"
export TIER_PROVIDER="devnet"

export TAIKO_TOKEN=0x0000000000000000000000000000000000000000
export SHARED_ADDRESS_MANAGER=0x0000000000000000000000000000000000000000
export PROPOSER=0x0000000000000000000000000000000000000000
export PROPOSER_ONE=0x0000000000000000000000000000000000000000
Expand Down
4 changes: 2 additions & 2 deletions pkg/rpc/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package rpc

import (
"context"
"fmt"
"errors"
"math/big"

"github.com/ethereum/go-ethereum/beacon/engine"
Expand All @@ -22,7 +22,7 @@ type EngineClient struct {
func NewJWTEngineClient(url, jwtSecret string) (*EngineClient, error) {
var jwt = StringToBytes32(jwtSecret)
if jwt == (common.Hash{}) || url == "" {
return nil, fmt.Errorf("url is empty or jwt secret is illegal")
return nil, errors.New("url is empty or jwt secret is illegal")
}
authClient, err := rpc.DialOptions(context.Background(), url, rpc.WithHTTPAuth(node.NewJWTAuth(jwt)))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion prover/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {

// If we are not running a guardian prover, a raiko host endpoint is required.
if !c.IsSet(flags.GuardianProver.Name) && !c.IsSet(flags.RaikoHostEndpoint.Name) {
return nil, fmt.Errorf("raiko host not provided")
return nil, errors.New("raiko host not provided")
}

var (
Expand Down

0 comments on commit c2b6db4

Please sign in to comment.