Merge pull request #1060 from disperze/fix-cli-example

Update instantiate cli example
This commit is contained in:
Alexander Peters
2022-11-01 09:59:43 +01:00
committed by GitHub

View File

@@ -183,7 +183,7 @@ func InstantiateContractCmd() *cobra.Command {
Long: fmt.Sprintf(`Creates a new instance of an uploaded wasm code with the given 'constructor' message. Long: fmt.Sprintf(`Creates a new instance of an uploaded wasm code with the given 'constructor' message.
Each contract instance has a unique address assigned. Each contract instance has a unique address assigned.
Example: Example:
$ %s wasmd tx wasm instantiate 1 '{"foo":"bar"}' --admin="$(%s keys show mykey -a)" \ $ %s tx wasm instantiate 1 '{"foo":"bar"}' --admin="$(%s keys show mykey -a)" \
--from mykey --amount="100ustake" --label "local0.1.0" --from mykey --amount="100ustake" --label "local0.1.0"
`, version.AppName, version.AppName), `, version.AppName, version.AppName),
Aliases: []string{"start", "init", "inst", "i"}, Aliases: []string{"start", "init", "inst", "i"},
@@ -224,7 +224,7 @@ Each contract instance has a unique address assigned. They are assigned automati
for special use cases, the given 'salt' argument and '--fix-msg' parameters can be used to generate a custom address. for special use cases, the given 'salt' argument and '--fix-msg' parameters can be used to generate a custom address.
Predictable address example (also see '%s query wasm build-address -h'): Predictable address example (also see '%s query wasm build-address -h'):
$ %s wasmd tx wasm instantiate2 1 '{"foo":"bar"}' $(echo -n "testing" | xxd -ps) --admin="$(%s keys show mykey -a)" \ $ %s tx wasm instantiate2 1 '{"foo":"bar"}' $(echo -n "testing" | xxd -ps) --admin="$(%s keys show mykey -a)" \
--from mykey --amount="100ustake" --label "local0.1.0" \ --from mykey --amount="100ustake" --label "local0.1.0" \
--fix-msg --fix-msg
`, version.AppName, version.AppName, version.AppName), `, version.AppName, version.AppName, version.AppName),