Skip to content

Commit 0d68e4e

Browse files
committed
Updated comments for bech32 encoding
1 parent 9352d4c commit 0d68e4e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

types/env.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type BlockInfo struct {
2222
}
2323

2424
type ContractInfo struct {
25-
// binary encoding of sdk.AccAddress of the contract, to be used when sending messages
25+
// Bech32 encoded sdk.AccAddress of the contract, to be used when sending messages
2626
Address HumanAddress `json:"address"`
2727
}
2828

@@ -36,8 +36,8 @@ type TransactionInfo struct {
3636
}
3737

3838
type MessageInfo struct {
39-
// binary encoding of sdk.AccAddress executing the contract
39+
// Bech32 encoded sdk.AccAddress executing the contract
4040
Sender HumanAddress `json:"sender"`
41-
// amount of funds send to the contract along with this message
41+
// Amount of funds send to the contract along with this message
4242
Funds Coins `json:"funds"`
4343
}

types/queries.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,20 @@ type WasmQuery struct {
351351

352352
// SmartQuery respone is raw bytes ([]byte)
353353
type SmartQuery struct {
354+
// Bech32 encoded sdk.AccAddress of the contract
354355
ContractAddr string `json:"contract_addr"`
355356
Msg []byte `json:"msg"`
356357
}
357358

358359
// RawQuery response is raw bytes ([]byte)
359360
type RawQuery struct {
361+
// Bech32 encoded sdk.AccAddress of the contract
360362
ContractAddr string `json:"contract_addr"`
361363
Key []byte `json:"key"`
362364
}
363365

364366
type ContractInfoQuery struct {
367+
// Bech32 encoded sdk.AccAddress of the contract
365368
ContractAddr string `json:"contract_addr"`
366369
}
367370

0 commit comments

Comments
 (0)