Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit ce1c135

Browse files
authored
Merge pull request #2051 from OpenBazaar/brian.fix-migration
Update the API URL for infura
2 parents 998d61e + 5379179 commit ce1c135

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

repo/migrations/Migration031.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func (am01) Up(repoPath, dbPassword string, testnet bool) error {
108108
return errors.New("invalid config: invalid ETH Wallet")
109109
}
110110

111+
ethWalletCfg["API"] = []string{"https://mainnet.infura.io"}
111112
ethWalletCfg["APIPool"] = []string{"https://mainnet.infura.io"}
112113
ethWalletCfg["APITestnetPool"] = []string{"https://rinkeby.infura.io"}
113114
ethWalletCfg["WalletOptions"] = map[string]interface{}{

repo/migrations/Migration031_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ const postAM01Config = `{
8484
]
8585
},
8686
"ETH": {
87+
"API": [
88+
"https://mainnet.infura.io"
89+
],
8790
"APIPool": [
8891
"https://mainnet.infura.io"
8992
],
@@ -166,6 +169,7 @@ func TestAM01(t *testing.T) {
166169
w := config["Wallets"].(map[string]interface{})
167170
eth := w["ETH"].(map[string]interface{})
168171

172+
AM01AssertAPI(t, eth["API"], "https://mainnet.infura.io")
169173
AM01AssertAPI(t, eth["APIPool"], "https://mainnet.infura.io")
170174
AM01AssertAPI(t, eth["APITestnetPool"], "https://rinkeby.infura.io")
171175

0 commit comments

Comments
 (0)