Posted on c/ElrondDevelopers 2 raz4932603403c/ElrondDevelopers 3 years ago Hey guys, any idea how I can pass a ManagedVec argument to a contract call using erdpy? Comment 2 Comments guest8144807973 3years ago function() { erdpy --verbose tx new --receiver=${ADDRESS} --recall-nonce \ --pem=${DEV} \ --chain=${CHAIN} --proxy=${PROXY} \ --gas-limit=6000000 \ --value=0 \ --data="yourEndpoint@${address1}@${address2}" \ --send || return } mwf81318617 3years ago if its a managed vec you will need to convert each address to hex and append them together into a single argument. MultiValueEncoded would allow you to specify them as separate arguments making it much more userf friendly :)
function() { erdpy --verbose tx new --receiver=${ADDRESS} --recall-nonce \ --pem=${DEV} \ --chain=${CHAIN} --proxy=${PROXY} \ --gas-limit=6000000 \ --value=0 \ --data="yourEndpoint@${address1}@${address2}" \ --send || return }
if its a managed vec you will need to convert each address to hex and append them together into a single argument. MultiValueEncoded would allow you to specify them as separate arguments making it much more userf friendly :)