Merge pull request #1398 from cosmos/discourage-non-empty-msg
Add note on non-empty msg values in instantiate2Address
This commit is contained in:
commit
0ae44ab3b3
@ -65,5 +65,8 @@ export function instantiate2Address(
|
||||
salt: Uint8Array,
|
||||
prefix: string,
|
||||
): string {
|
||||
return _instantiate2AddressIntermediate(checksum, creator, salt, null, prefix).address;
|
||||
// Non-empty msg values are discouraged.
|
||||
// See https://medium.com/cosmwasm/dev-note-3-limitations-of-instantiate2-and-how-to-deal-with-them-a3f946874230.
|
||||
const msg = null;
|
||||
return _instantiate2AddressIntermediate(checksum, creator, salt, msg, prefix).address;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user