diff --git a/.github/config/.codespellignore b/.github/config/.codespellignore index a9b0dab8..e941a1c7 100644 --- a/.github/config/.codespellignore +++ b/.github/config/.codespellignore @@ -8,3 +8,7 @@ EyT upTo initia minitia +expRes +metadataA +totalIn +totalOut \ No newline at end of file diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index fdc6723e..6f6265ba 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -12102,7 +12102,7 @@ paths: vetoed. Default value: 1/3. params: description: |- - params defines all the paramaters of x/gov module. + params defines all the parameters of x/gov module. Since: cosmos-sdk 0.47 type: object @@ -20343,7 +20343,7 @@ paths: - Query /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: get: - summary: Allowance returns granted allwance to the grantee by the granter. + summary: Allowance returns granted allowance to the grantee by the granter. operationId: Allowance responses: '200': @@ -34969,7 +34969,7 @@ paths: format: uint64 - name: latest_height description: >- - latest_height overrrides the height field and queries the latest + latest_height overrides the height field and queries the latest stored ConsensusState. @@ -36564,7 +36564,7 @@ paths: identifier description: >- Version defines the versioning scheme used to - negotiate the IBC verison in + negotiate the IBC version in the connection handshake. title: >- @@ -36973,7 +36973,7 @@ paths: identifier description: >- Version defines the versioning scheme used to negotiate - the IBC verison in + the IBC version in the connection handshake. description: >- @@ -52943,7 +52943,7 @@ paths: finalization_period: type: string description: >- - The minium time duration that must elapse before a + The minimum time duration that must elapse before a withdrawal can be finalized. submission_start_height: type: string @@ -53114,7 +53114,7 @@ paths: finalization_period: type: string description: >- - The minium time duration that must elapse before a + The minimum time duration that must elapse before a withdrawal can be finalized. submission_start_height: type: string @@ -65859,7 +65859,7 @@ definitions: vetoed. Default value: 1/3. params: description: |- - params defines all the paramaters of x/gov module. + params defines all the parameters of x/gov module. Since: cosmos-sdk 0.47 type: object @@ -68743,7 +68743,7 @@ definitions: gas to be used by the transaction. The ratio yields an effective "gasprice", - which must be above some miminum to be accepted into the mempool. + which must be above some minimum to be accepted into the mempool. cosmos.tx.v1beta1.GetBlockWithTxsResponse: type: object properties: @@ -79635,7 +79635,7 @@ definitions: title: list of features compatible with the specified identifier description: >- Version defines the versioning scheme used to negotiate the IBC - verison in + version in the connection handshake. description: >- @@ -79757,7 +79757,7 @@ definitions: title: list of features compatible with the specified identifier description: >- Version defines the versioning scheme used to negotiate the IBC - verison in + version in the connection handshake. title: >- @@ -80342,7 +80342,7 @@ definitions: title: list of features compatible with the specified identifier description: >- Version defines the versioning scheme used to negotiate the IBC - verison in + version in the connection handshake. description: >- @@ -80479,7 +80479,7 @@ definitions: title: list of features compatible with the specified identifier description: >- Version defines the versioning scheme used to negotiate the - IBC verison in + IBC version in the connection handshake. title: >- @@ -80625,7 +80625,7 @@ definitions: type: string title: list of features compatible with the specified identifier description: |- - Version defines the versioning scheme used to negotiate the IBC verison in + Version defines the versioning scheme used to negotiate the IBC version in the connection handshake. ibc.applications.transfer.v1.DenomTrace: type: object @@ -81747,7 +81747,7 @@ definitions: format: uint64 title: packet sequence title: |- - PacketId is an identifer for a unique Packet + PacketId is an identifier for a unique Packet Source chains refer to packets by source port/channel Destination chains refer to packets by destination port/channel ibc.applications.perm.v1.ChannelState: @@ -88440,7 +88440,7 @@ definitions: finalization_period: type: string description: >- - The minium time duration that must elapse before a withdrawal can be + The minimum time duration that must elapse before a withdrawal can be finalized. submission_start_height: type: string @@ -88601,7 +88601,7 @@ definitions: finalization_period: type: string description: >- - The minium time duration that must elapse before a withdrawal can + The minimum time duration that must elapse before a withdrawal can be finalized. submission_start_height: type: string @@ -88663,7 +88663,7 @@ definitions: finalization_period: type: string description: >- - The minium time duration that must elapse before a + The minimum time duration that must elapse before a withdrawal can be finalized. submission_start_height: type: string diff --git a/x/bank/keeper/msg_server.go b/x/bank/keeper/msg_server.go index 2ae84a08..aef97fc0 100644 --- a/x/bank/keeper/msg_server.go +++ b/x/bank/keeper/msg_server.go @@ -102,7 +102,7 @@ func (k msgServer) MultiSend(goCtx context.Context, msg *types.MsgMultiSend) (*t ctx := sdk.UnwrapSDKContext(goCtx) - // NOTE: total In == total Out should already have been checked + // NOTE: totalIn == totalOut should already have been checked if err := k.IsSendEnabledCoins(ctx, in.Coins...); err != nil { return nil, err } diff --git a/x/move/client/cli/utils_test.go b/x/move/client/cli/utils_test.go index 79d127d0..207cf4fa 100644 --- a/x/move/client/cli/utils_test.go +++ b/x/move/client/cli/utils_test.go @@ -13,7 +13,7 @@ func Test_readJSONStringArray(t *testing.T) { testCases := []struct { name string s string - express []string + expRes []string expErr bool }{ {"empty", "", []string{}, false}, @@ -30,17 +30,17 @@ func Test_readJSONStringArray(t *testing.T) { require.Error(t, err, tc.name) } else { require.NoError(t, err, tc.name) - require.Equal(t, tc.express, res, tc.name) + require.Equal(t, tc.expRes, res, tc.name) } } } func Test_decodeJSONStringArray(t *testing.T) { testCases := []struct { - name string - ss []string + name string + ss []string express []string - expErr bool + expErr bool }{ {"empty", []string{}, []string{}, false}, {"empty array", []string{}, []string{}, false}, @@ -62,10 +62,10 @@ func Test_decodeJSONStringArray(t *testing.T) { func Test_BCSEncode(t *testing.T) { testCases := []struct { - arg string + arg string express []byte - expErr bool - name string + expErr bool + name string }{ {"raw_hex:014c6f72656d00497073756d02", []byte{0x0d, 0x01, 0x4c, 0x6f, 0x72, 0x65, 0x6d, 0x00, 0x49, 0x70, 0x73, 0x75, 0x6d, 0x02}, false, "raw_hex \\x01Lorem\\x00Ipsum\\x02"}, {"raw_base64:AUxvcmVtAElwc3VtAg==", []byte{0x0d, 0x01, 0x4c, 0x6f, 0x72, 0x65, 0x6d, 0x00, 0x49, 0x70, 0x73, 0x75, 0x6d, 0x02}, false, "raw_base64 \\x01Lorem\\x00Ipsum\\x02"}, diff --git a/x/move/keeper/balancer.go b/x/move/keeper/balancer.go index 110b572f..87c8b556 100644 --- a/x/move/keeper/balancer.go +++ b/x/move/keeper/balancer.go @@ -206,7 +206,7 @@ func (k BalancerKeeper) poolMetadata(ctx context.Context, metadataLP vmtypes.Acc return nil, err } - metadata, _, err := k.Keeper.MoveBankKeeper().Balance(ctx, storeA) + metadataA, _, err := k.Keeper.MoveBankKeeper().Balance(ctx, storeA) if err != nil { return nil, err } @@ -216,7 +216,7 @@ func (k BalancerKeeper) poolMetadata(ctx context.Context, metadataLP vmtypes.Acc return nil, err } - return []vmtypes.AccountAddress{metadata, metadataB}, nil + return []vmtypes.AccountAddress{metadataA, metadataB}, nil } func (k BalancerKeeper) poolBalances(ctx context.Context, metadataLP vmtypes.AccountAddress) (balances []math.Int, err error) {