Skip to content

Commit 0cf7c01

Browse files
committed
Make ContractAddrLen variable
1 parent 5f0b5ef commit 0cf7c01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x/wasm/types/types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ const (
2020
defaultSmartQueryGasLimit uint64 = 3_000_000
2121
defaultContractDebugMode = false
2222

23-
// ContractAddrLen defines a valid address length for contracts
24-
ContractAddrLen = 32
2523
// SDKAddrLen defines a valid address length that was used in sdk address generation
2624
SDKAddrLen = 20
2725
)
2826

27+
// ContractAddrLen defines a valid address length for contracts
28+
var ContractAddrLen = 32
29+
2930
func (m Model) ValidateBasic() error {
3031
if len(m.Key) == 0 {
3132
return errorsmod.Wrap(ErrEmpty, "key")

0 commit comments

Comments
 (0)