You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to use elementsd to create a regtest integration test framework.
I have the following code trying to generate new regtest blocks.
let elementsd = ElementsD::new(downloaded_exe_path().unwrap()).unwrap();let mining_address = elementsd
.client().call::<Value>("getnewaddress",&[]).unwrap().to_string();
elementsd.client().call::<Value>("generatetoaddress",&[101.into(), mining_address.into()]).unwrap();
This is error with the following msg: called Result::unwrap() on an Err value: JsonRpc(Rpc(RpcError { code: -5, message: "Error: Invalid address", data: None })).
Any idea or hint on what I am doing wrong would be very helpful.
The text was updated successfully, but these errors were encountered:
let mining_address = self.elementsd.client().call::<Value>("getnewaddress",&[]).unwrap();self.elementsd.client().call::<Value>("generatetoaddress",&[n.into(), mining_address]).unwrap();
I am currently trying to use elementsd to create a regtest integration test framework.
I have the following code trying to generate new regtest blocks.
This is error with the following msg:
called Result::unwrap() on an Err value: JsonRpc(Rpc(RpcError { code: -5, message: "Error: Invalid address", data: None }))
.Any idea or hint on what I am doing wrong would be very helpful.
The text was updated successfully, but these errors were encountered: