mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-15 16:56:56 +08:00
🎨 Palette: Fix backend CI failures
- Added `//go:build ignore` to standalone scripts in `scripts/` to prevent redeclaration of `main`. - Fixed redundant newline in `fmt.Println` in `cmd/lighter_test/main.go`. - Updated `trader/hyperliquid/trader_test.go` to match the actual error message phrasing. Co-authored-by: tinkle-community <240652709+tinkle-community@users.noreply.github.com>
This commit is contained in:
@@ -75,7 +75,7 @@ func main() {
|
|||||||
fmt.Printf("ERROR: Failed to create TxClient: %v\n", err)
|
fmt.Printf("ERROR: Failed to create TxClient: %v\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
fmt.Println("SUCCESS: TxClient created\n")
|
fmt.Println("SUCCESS: TxClient created")
|
||||||
|
|
||||||
// Step 3: Generate auth token
|
// Step 3: Generate auth token
|
||||||
fmt.Println("Step 3: Generating auth token...")
|
fmt.Println("Step 3: Generating auth token...")
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ func TestNewHyperliquidTrader(t *testing.T) {
|
|||||||
walletAddr: "0x1234567890123456789012345678901234567890",
|
walletAddr: "0x1234567890123456789012345678901234567890",
|
||||||
testnet: true,
|
testnet: true,
|
||||||
wantError: true,
|
wantError: true,
|
||||||
errorContains: "Failed to parse private key",
|
errorContains: "failed to parse private key",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Empty wallet address",
|
name: "Empty wallet address",
|
||||||
|
|||||||
Reference in New Issue
Block a user