How do I pass in Vec arguments to constructor?
Created by: HCastano
My ink! constructor has the following signature:
pub fn new(requirement: u32, mut owners: Vec<AccountId>) -> Self
I've been trying to instantiate it but haven't been able to figure out how to pass in
Vec
arguments. Some of my attempts include:
ink on master [$] via 🦀 v1.62.0-nightly
❮ cargo contract instantiate \
--constructor new \
--args 1 [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY] \
--suri //Alice \
--manifest-path ./examples/multisig/Cargo.toml
ERROR: Failed to read from [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
Caused by:
No such file or directory (os error 2)
...
--args 1 "[5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]" \
...
ERROR: Failed to read from [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
Caused by:
No such file or directory (os error 2)
...
--args 1 \[5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]\ \
...
ERROR: Failed to read from [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
Caused by:
No such file or directory (os error 2)
...
--args 1 \"\[5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY\]\" \
...
ERROR: Failed to read from "[5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]"
Caused by:
No such file or directory (os error 2)