Skip to content

Commit

Permalink
Fixing slash notation in tests and config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tilenflare committed Apr 25, 2024
1 parent ab293ff commit 3ad9de6
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions go-client/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func TestClient(t *testing.T) {
chainAddress := ""
valueProviderBaseUrl := ""
if chainNode == "docker_ganache" {
chainAddress = "http://ganache:8545/"
valueProviderBaseUrl = "http://value-provider:3101/"
chainAddress = "http://ganache:8545"
valueProviderBaseUrl = "http://value-provider:3101"
} else {
// running a ganache node
logger.Info("starting a ganache chain node")
Expand All @@ -31,11 +31,11 @@ func TestClient(t *testing.T) {
// cmd.Stdout = os.Stdout
// cmd.Stderr = os.Stderr
go cmd.Run() //nolint:errcheck
chainAddress = "http://127.0.0.1:8545/"
chainAddress = "http://127.0.0.1:8545"

// runs an external provider that returns fixed values for testing
runValueProvider()
valueProviderBaseUrl = "http://localhost:3101/"
valueProviderBaseUrl = "http://localhost:3101"
}

// set chain parameters
Expand Down
2 changes: 1 addition & 1 deletion go-client/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ file = "./logger/logs/fast_updates_client.log"
console = true

[chain]
node_url = "http://127.0.0.1:8545/"
node_url = "http://127.0.0.1:8545"
chain_id = 1337
6 changes: 3 additions & 3 deletions go-client/tests/configs/config1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ incentive_manager_address = "0x78Aeff0658Fa67735fBF99Ce7CDB01Fe5D520259"
submission_window = 8
advance_blocks = 0
max_weight = 256
value_provider_base_url = "http://host.docker.internal:3101/"
value_provider_base_url = "http://host.docker.internal:3101"

[transactions]
accounts = [
Expand All @@ -27,9 +27,9 @@ file = "./logger/logs/fast_updates_client1.log"
console = true

[chain]
# node_url = "http://ganache:8545/"
# node_url = "http://ganache:8545"
# chain_id = 1337
node_url = "http://host.docker.internal:8545/"
node_url = "http://host.docker.internal:8545"
chain_id = 31337
# node_url = "https://coston2-api.flare.network/ext/C/rpc"
# chain_id = 114
6 changes: 3 additions & 3 deletions go-client/tests/configs/config2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ incentive_manager_address = "0x78Aeff0658Fa67735fBF99Ce7CDB01Fe5D520259"
submission_window = 8
advance_blocks = 0
max_weight = 256
value_provider_base_url = "http://host.docker.internal:3101/"
value_provider_base_url = "http://host.docker.internal:3101"

[transactions]
accounts = [
Expand All @@ -27,9 +27,9 @@ file = "./logger/logs/fast_updates_client2.log"
console = true

[chain]
# node_url = "http://ganache:8545/"
# node_url = "http://ganache:8545"
# chain_id = 1337
node_url = "http://host.docker.internal:8545/"
node_url = "http://host.docker.internal:8545"
chain_id = 31337
# node_url = "https://coston2-api.flare.network/ext/C/rpc"
# chain_id = 114
6 changes: 3 additions & 3 deletions go-client/tests/configs/config3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ incentive_manager_address = "0x78Aeff0658Fa67735fBF99Ce7CDB01Fe5D520259"
submission_window = 8
advance_blocks = 0
max_weight = 256
value_provider_base_url = "http://host.docker.internal:3101/"
value_provider_base_url = "http://host.docker.internal:3101"

[transactions]
accounts = [
Expand All @@ -27,9 +27,9 @@ file = "./logger/logs/fast_updates_client3.log"
console = true

[chain]
# node_url = "http://ganache:8545/"
# node_url = "http://ganache:8545"
# chain_id = 1337
node_url = "http://host.docker.internal:8545/"
node_url = "http://host.docker.internal:8545"
chain_id = 31337
# node_url = "https://coston2-api.flare.network/ext/C/rpc"
# chain_id = 114
2 changes: 1 addition & 1 deletion go-client/tests/configs/config_coston2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ flare_system_manager = "0x3b9a1E27c317DdD9c256dD5a49f7f2C67E603c06"
submission_window = 8
advance_blocks = 0
max_weight = 512
value_provider_base_url = "http://host.docker.internal:3101/"
value_provider_base_url = "http://host.docker.internal:3101"

[transactions]
accounts = [
Expand Down
4 changes: 2 additions & 2 deletions go-client/tests/configs/config_deploy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ gas_price_multiplier = 1.2


[chain]
node_url = "http://ganache:8545/"
node_url = "http://ganache:8545"
chain_id = 1337
# node_url = "http://127.0.0.1:8545/"
# node_url = "http://127.0.0.1:8545"
# chain_id = 1337
# node_url = "https://coston2-api.flare.network/ext/C/rpc"
# chain_id = 114
Expand Down
4 changes: 2 additions & 2 deletions go-client/tests/configs/config_hardhat.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ flare_system_manager = "0xa4bcDF64Cdd5451b6ac3743B414124A6299B65FF"
submission_window = 8
advance_blocks = 0
max_weight = 256
value_provider_base_url = "http://host.docker.internal:3101/"
value_provider_base_url = "http://host.docker.internal:3101"

[transactions]
accounts = [
Expand All @@ -25,5 +25,5 @@ file = "./logger/logs/fast_updates_client.log"
console = true

[chain]
node_url = "http://127.0.0.1:8545/"
node_url = "http://127.0.0.1:8545"
chain_id = 31337

0 comments on commit 3ad9de6

Please sign in to comment.