feat: explorer API, wallet, CCIP scripts, and config refresh
- Backend REST/gateway/track routes, analytics, Blockscout proxy paths. - Frontend wallet and liquidity surfaces; MetaMask token list alignment. - Deployment docs, verification scripts, address inventory updates. Check: go build ./... under backend/ (pass). Made-with: Cursor
This commit is contained in:
23
backend/api/rest/validation_test.go
Normal file
23
backend/api/rest/validation_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package rest
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNormalizeAddress(t *testing.T) {
|
||||
input := " 0xAbCdEf1234567890ABCdef1234567890abCDef12 "
|
||||
got := normalizeAddress(input)
|
||||
want := "0xabcdef1234567890abcdef1234567890abcdef12"
|
||||
|
||||
if got != want {
|
||||
t.Fatalf("normalizeAddress() = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeHash(t *testing.T) {
|
||||
input := " 0xABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890 "
|
||||
got := normalizeHash(input)
|
||||
want := "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
|
||||
|
||||
if got != want {
|
||||
t.Fatalf("normalizeHash() = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user