Skip to content

Commit 2e9473d

Browse files
authored
Add sepolia, remove goerli (base#12)
* Fix bug from base#11 * Remove goerli, add sepolia * Fix comment
1 parent 6f1cb07 commit 2e9473d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

main.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ var networks = map[string]network{
3131
portalAddress: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
3232
l2OOAddress: "0x56315b90c40730925ec5485cf004d835058518A0",
3333
},
34-
"base-goerli": {
35-
l2RPC: "https://goerli.base.org",
36-
portalAddress: "0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA",
37-
l2OOAddress: "0x2A35891ff30313CcFa6CE88dcf3858bb075A2298",
34+
"base-sepolia": {
35+
l2RPC: "https://sepolia.base.org",
36+
portalAddress: "0x49f53e41452C74589E85cA1677426Ba426459e85",
37+
l2OOAddress: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254",
3838
},
3939
"op-mainnet": {
4040
l2RPC: "https://mainnet.optimism.io",
4141
portalAddress: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed",
4242
l2OOAddress: "0xdfe97868233d1aa22e815a266982f2cf17685a27",
4343
},
44-
"op-goerli": {
45-
l2RPC: "https://goerli.optimism.io",
46-
portalAddress: "0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383",
47-
l2OOAddress: "0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0",
44+
"op-sepolia": {
45+
l2RPC: "https://sepolia.optimism.io",
46+
portalAddress: "0x16Fc5058F25648194471939df75CF27A2fdC48BC",
47+
l2OOAddress: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F",
4848
},
4949
}
5050

signer/wallet_signer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ func (s *walletSigner) SignData(data []byte) ([]byte, error) {
3636
return s.wallet.SignData(s.account, accounts.MimetypeTypedData, data)
3737
}
3838

39-
// derivePrivateKey derives an ECDSA private key from a mnemonic phrase and derivation path.
40-
func derivePrivateKey(mnemonic string, path accounts.DerivationPath) (*ecdsa.PrivateKey, error) {
39+
// derivePrivateKeyFromMnemonic derives an ECDSA private key from a mnemonic phrase and derivation path.
40+
func derivePrivateKeyFromMnemonic(mnemonic string, path accounts.DerivationPath) (*ecdsa.PrivateKey, error) {
4141
// Parse the seed string into the master BIP32 key.
4242
seed, err := bip39.NewSeedWithErrorChecking(mnemonic, "")
4343
if err != nil {

0 commit comments

Comments
 (0)