blue
October 17, 2022, 12:30pm
1
I wish to pass AccountAddress as a parameter in concordium client .
*After executing .\concordium-client.exe --grpc-port 10001 contract show 1435
recieve function takes parameter as
parameter.json I am providing contains
{
“address”: “[80,156,103,144,58,218,89,38,133,132,207,35,33,129,13,175,255,251,171,50,98,30,234,14,24,255,60,52,30,1,25,98]”,
“match_id” : “1”
}
but client displays this error
blue
October 17, 2022, 12:32pm
2
I followed this article to get AccountAddress
Hi,
I want to hard code an account address into the smart contract so I can use it for checking against sender/init_origin for authorization. I can see that an account address is a 32-byte sequence that is displayed as Base58check encoded. How can I make a constant variable for base58 encoded account address, e.g., 3ZFGxLtnUUSJGW2WqjMh1DDjxyq5rnytCwkSqxFTpsWSFdQnNn? I’ve tried to decode this one to hex and then use the macro hex! to convert it to a [u8, 32] array but the hex literal is 37 eleme…
Doris
October 18, 2022, 7:16am
3
Can you try using a JSON file with an account address in the following format (not the byte format):
{
“address”: “4phD1qaS3U1nLrzJcgYyiPq1k8aV1wAjTjYVPE3JaqovViXS4j”,
“match_id” : “1”
}
1 Like