fix: HL testnet - add API wallet address to signed orders, 3-param constructor

This commit is contained in:
jackyu66git
2026-05-04 15:39:31 +08:00
parent 30436bbe75
commit c5c4c7394f
3 changed files with 17 additions and 4 deletions
+3 -1
View File
@@ -56,7 +56,8 @@ type Config struct {
// HyperLiquid API
HLPrivateKey string // ed25519 private key hex
HLAddress string // wallet address
HLAddress string // main account address
HLAPIAddress string // API wallet address (signer, auto-derived if empty)
}
// jsonConfig maps config.json fields (non-secret defaults checked into git).
@@ -157,6 +158,7 @@ func LoadConfig() *Config {
HLPrivateKey: getEnv("HL_PRIVATE_KEY", ""),
HLAddress: getEnv("HL_ADDRESS", ""),
HLAPIAddress: getEnv("HL_API_ADDRESS", ""),
}
}