Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
Open
Changes from all commits
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
7 changes: 5 additions & 2 deletions accounts/smart_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package accounts
import (
"context"
"errors"
"math/big"

"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/signer/core/apitypes"
Expand All @@ -13,7 +15,6 @@ import (
"github.com/zksync-sdk/zksync2-go/contracts/nonceholder"
"github.com/zksync-sdk/zksync2-go/types"
"github.com/zksync-sdk/zksync2-go/utils"
"math/big"
)

// SmartAccount is a signer which can be configured to sign various payloads using a provided secret.
Expand Down Expand Up @@ -344,7 +345,9 @@ func (a *SmartAccount) cacheData(ctx context.Context) error {
if err != nil {
return bridgeErr
}
a.sharedL2BridgeAddress = bridges.L2SharedBridge
if bridges != nil {
a.sharedL2BridgeAddress = bridges.L2SharedBridge
}
}
return nil
}
Expand Down
Loading