-
-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When testing #583, an invalid network value in defaultNetworks is correctly rejected when submitted individually, however validation fails when multiple networks are included allowing the invalid entry
#### # /config/update
curl -sS http://localhost:15888/config/update -H 'Content-Type: application/json' -u "XXX:XXX" -d '{"namespace":"ethereum","path":"defaultNetworks","value":["ralphhandsome","ralph_pure_awesomeness"]}' | jq
{
"message": "Configuration updated successfully: 'ethereum.defaultNetworks' set to [\"ralphhandsome\",\"ralph_pure_awesomeness\"]"
}
logs: 2026-01-28 05:46:32 | info | Updating config path: ethereum.defaultNetworks with value: ["ralphhandsome","ralph_pure_awesomeness"]
#### /config/?namespace=ethereum
curl -sS "http://localhost:15888/config/?namespace=ethereum" -u "XXX:XXX" | jq
{
"defaultNetwork": "arbitrum",
"defaultWallet": "0x08940dc9B5a19FAb9319b77C61DDA7B8067E6843",
"rpcProvider": "url",
"defaultNetworks": [
"ralphhandsome",
"ralph_pure_awesomeness"
]
}
Steps to reproduce
- Run gateway config ethereum update defaultNetworks test01,test02,test03
- Or use the curl
curl -sS http://localhost:15888/config/updateand add two on defaultNetworks like sample above
Release version
dev-2.13
Type of installation
Source
Attach required files
n/a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working