Skip to content

Commit 20ef2ed

Browse files
authored
Merge pull request #2487 from CosmWasm/format-go
Apply editorconfig rules to all .go files
2 parents ec91dcb + 759fbac commit 20ef2ed

10 files changed

+13
-10
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ indent_size = 4 # For compliance with our taplo config
1515

1616
[*.py]
1717
indent_size = 4
18+
19+
[*.go]
20+
indent_style = tab
21+
indent_size = 4

packages/go-gen/tests/cosmwasm_std__BankQuery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ type PageRequest struct {
4040
Limit uint32 `json:"limit"`
4141
// Reverse is set to true if results are to be returned in the descending order.
4242
Reverse bool `json:"reverse"`
43-
}
43+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
type BondedDenomResponse struct {
22
Denom string `json:"denom"`
3-
}
3+
}

packages/go-gen/tests/cosmwasm_std__ContractInfoResponse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ type ContractInfoResponse struct {
1010
IBCPort string `json:"ibc_port,omitempty"`
1111
// if set, the contract is pinned to the cache, and thus uses less gas when called
1212
Pinned bool `json:"pinned"`
13-
}
13+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
type DelegatorWithdrawAddressResponse struct {
2-
WithdrawAddress string `json:"withdraw_address"`
2+
WithdrawAddress string `json:"withdraw_address"`
33
}

packages/go-gen/tests/cosmwasm_std__DistributionQuery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ type DistributionQuery struct {
2121
DelegationTotalRewards *DelegationTotalRewardsQuery `json:"delegation_total_rewards,omitempty"`
2222
// See <https://github.com/cosmos/cosmos-sdk/blob/b0acf60e6c39f7ab023841841fc0b751a12c13ff/proto/cosmos/distribution/v1beta1/query.proto#L202-L210>
2323
DelegatorValidators *DelegatorValidatorsQuery `json:"delegator_validators,omitempty"`
24-
}
24+
}

packages/go-gen/tests/cosmwasm_std__RawRangeResponse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ type RawRangeResponse struct {
33
Data Array[Array[[]byte]] `json:"data"`
44
// `None` if there are no more key-value pairs within the given key range.
55
NextKey []byte `json:"next_key"`
6-
}
6+
}

packages/go-gen/tests/cosmwasm_std__StakingQuery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ type StakingQuery struct {
2424
Delegation *DelegationQuery `json:"delegation,omitempty"`
2525
AllValidators *AllValidatorsQuery `json:"all_validators,omitempty"`
2626
Validator *ValidatorQuery `json:"validator,omitempty"`
27-
}
27+
}

packages/go-gen/tests/cosmwasm_std__SupplyResponse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ type SupplyResponse struct {
77
type Coin struct {
88
Amount string `json:"amount"` // string encoing of decimal value, eg. "12.3456"
99
Denom string `json:"denom"` // type, eg. "ATOM"
10-
}
10+
}

packages/go-gen/tests/cosmwasm_std__WasmQuery.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// SmartQuery response is raw bytes ([]byte)
32
type SmartQuery struct {
43
// Bech32 encoded sdk.AccAddress of the contract
@@ -45,4 +44,4 @@ type WasmQuery struct {
4544
ContractInfo *ContractInfoQuery `json:"contract_info,omitempty"`
4645
CodeInfo *CodeInfoQuery `json:"code_info,omitempty"`
4746
RawRange *RawRangeQuery `json:"raw_range,omitempty"`
48-
}
47+
}

0 commit comments

Comments
 (0)