Skip to content

Commit 6420468

Browse files
authored
Merge pull request #2257 from VolodymyrBg/bgg
Fix typos and improve comment clarity in wasm module
2 parents e923c88 + fdb698a commit 6420468

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

x/wasm/keeper/msg_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (m msgServer) InstantiateContract(ctx context.Context, msg *types.MsgInstan
7676
}, nil
7777
}
7878

79-
// InstantiateContract2 instantiate a new contract with predicatable address generated
79+
// InstantiateContract2 instantiate a new contract with a predictable address generated
8080
func (m msgServer) InstantiateContract2(ctx context.Context, msg *types.MsgInstantiateContract2) (*types.MsgInstantiateContract2Response, error) {
8181
if err := msg.ValidateBasic(); err != nil {
8282
return nil, err

x/wasm/types/gas_register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const (
4949
DefaultEventAttributeDataCost uint64 = 1
5050
// DefaultContractMessageDataCost is how much SDK gas is charged *per byte* of the message that goes to the contract
5151
// This is used with len(msg). Note that the message is deserialized in the receiving contract and this is charged
52-
// with wasm gas already. The derserialization of results is also charged in wasmvm. I am unsure if we need to add
52+
// with wasm gas already. The deserialization of results is also charged in wasmvm. I am unsure if we need to add
5353
// additional costs here.
5454
// Note: also used for error fields on reply, and data on reply. Maybe these should be pulled out to a different (non-zero) field
5555
DefaultContractMessageDataCost uint64 = 0

x/wasm/types/proposal_legacy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func (p StoreAndInstantiateContractProposal) ValidateBasic() error {
375375

376376
// String implements the Stringer interface.
377377
func (p StoreAndInstantiateContractProposal) String() string {
378-
return fmt.Sprintf(`Store And Instantiate Coontract Proposal:
378+
return fmt.Sprintf(`Store And Instantiate Contract Proposal:
379379
Title: %s
380380
Description: %s
381381
Run as: %s

0 commit comments

Comments
 (0)