I have issues executing methods on my contract after deployment on Ropsten.
$ zos send-tx --network ropsten --from=0x9F833d555c786cb748bd7b8072b18e699A093f24
[ '0x2353e45ff9613cfb05cc797e15cc37fd0d7f9658' ]
[ '0x2353e45ff9613cfb05cc797e15cc37fd0d7f9658' ]
? Pick an instance NCDToken at 0xb11d2ca96CE8C0923868E9E662A8c65dbE4E0afd
? Select which function mint(to: address, value: uint256)
? to (address): 0x9F833d555c786cb748bd7b8072b18e699A093f24
? value (uint256): 100
✖ Calling: 'mint' with:
- to (address): "0x9F833d555c786cb748bd7b8072b18e699A093f24"
- value (uint256): "100"
Error while trying to send transaction to 0xb11d2ca96CE8C0923868E9E662A8c65dbE4E0afd.
Error: Unknown address - unable to sign transaction for this address: "0x9f833d555c786cb748bd7b8072b18e699a093f24"
0x9F833d555c786cb748bd7b8072b18e699A093f24 has the minter role, as can be verified on Etherscan.io:
https://ropsten.etherscan.io/address/0xb11d2ca96ce8c0923868e9e662a8c65dbe4e0afd#events
Therefor I call the transaction with --from=minter-address
Since the error message is called “unknown address”, what does it mean? I have seen this error quiet often recently in combination with the --from
statement.
Do I use “zos send-tx” wrong?
I guess that private key to this address is not known to zos, although it was derived from mnemonics out of network.js. Is there any chance to unlock it somehow in order to sign transactions for send-tx
?
zos-version: 2.4