Skip to content

Commit 3eece89

Browse files
Obelisk-The-Tormentorfalzhang
andauthored
chore(): sdk修复, GetAllAddresses()获取ENS时,不排序 (#30)
Co-authored-by: falzhang <[email protected]>
1 parent d75e5bc commit 3eece89

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/restv2/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"strconv"
1010
"syscall"
1111
"time"
12+
13+
"github.com/easyops-cn/giraffe-micro"
1214
)
1315

1416
// Middleware 中间件定义

plugins/restv2/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ func TestClient_getAllAddressesWithNS(t *testing.T) {
568568
c := &Client{
569569
NameService: nameService,
570570
}
571-
gotAddresses, err := c.getAllAddressesWithNS(nil, nil)
571+
gotAddresses, err := c.getAllAddressesWithENS(nil, nil)
572572
if (err != nil) != tt.wantErr {
573573
t.Errorf("getAllAddressesWithNS() error = %v, wantErr %v", err, tt.wantErr)
574574
return

0 commit comments

Comments
 (0)