Skip to content

Commit d2a5c25

Browse files
lint fixes
1 parent 3f627a3 commit d2a5c25

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

chain/sui/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ func grpcTargetFromNodeURL(nodeURL string) (string, error) {
5353
if strings.Contains(host, ":") && !strings.HasPrefix(host, "[") {
5454
return fmt.Sprintf("[%s]:%s", host, port), nil
5555
}
56+
5657
return fmt.Sprintf("%s:%s", host, port), nil
5758
}

chain/sui/provider/ctf_provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func Test_CTFChainProvider_Initialize(t *testing.T) {
121121
// Check that the chain is of type sui.Chain and has the expected fields
122122
gotChain, ok := got.(sui.Chain)
123123
require.True(t, ok, "expected got to be of type sui.Chain")
124-
assert.Equal(t, tt.giveSelector, gotChain.ChainMetadata.Selector)
124+
assert.Equal(t, tt.giveSelector, gotChain.Selector)
125125
assert.NotEmpty(t, gotChain.Client)
126126
assert.NotEmpty(t, gotChain.Signer)
127127
assert.NotEmpty(t, gotChain.URL)

chain/sui/provider/rpc_provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func Test_RPCChainProvider_Initialize(t *testing.T) {
118118

119119
gotChain, ok := got.(sui.Chain)
120120
require.True(t, ok, "expected got to be of type sui.Chain")
121-
assert.Equal(t, tt.giveSelector, gotChain.ChainMetadata.Selector)
121+
assert.Equal(t, tt.giveSelector, gotChain.Selector)
122122
assert.NotEmpty(t, gotChain.Client)
123123
assert.NotEmpty(t, gotChain.Signer)
124124
assert.Equal(t, tt.giveConfig.RPCURL, gotChain.URL)

chain/sui/sui_chain_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ func TestChain_ChainInfot(t *testing.T) {
4242
c := sui.Chain{
4343
ChainMetadata: sui.ChainMetadata{Selector: tt.selector},
4444
}
45-
assert.Equal(t, tt.selector, c.ChainMetadata.ChainSelector())
46-
assert.Equal(t, tt.wantString, c.ChainMetadata.String())
47-
assert.Equal(t, tt.wantName, c.ChainMetadata.Name())
48-
assert.Equal(t, tt.wantFamily, c.ChainMetadata.Family())
45+
assert.Equal(t, tt.selector, c.ChainSelector())
46+
assert.Equal(t, tt.wantString, c.String())
47+
assert.Equal(t, tt.wantName, c.Name())
48+
assert.Equal(t, tt.wantFamily, c.Family())
4949
})
5050
}
5151
}

0 commit comments

Comments
 (0)