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

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Jan 21, 2024
1 parent c2b9d19 commit b981b95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ func NewClient(ctx context.Context, cfg *ClientConfig) (*Client, error) {
taikoToken *bindings.TaikoToken
guardianProver *bindings.GuardianProver
)
if cfg.TaikoTokenAddress != ZeroAddress {
if cfg.TaikoTokenAddress.Hex() != ZeroAddress.Hex() {
if taikoToken, err = bindings.NewTaikoToken(cfg.TaikoTokenAddress, L1Client); err != nil {
return nil, err
}
}
if cfg.GuardianProverAddress != ZeroAddress {
if guardianProver, err = bindings.NewGuardianProver(cfg.GuardianProverAddress, L2Client); err != nil {
if cfg.GuardianProverAddress.Hex() != ZeroAddress.Hex() {
if guardianProver, err = bindings.NewGuardianProver(cfg.GuardianProverAddress, L1Client); err != nil {
return nil, err
}
}
Expand Down

0 comments on commit b981b95

Please sign in to comment.