corrected response mapping from API requests
This commit is contained in:
@@ -7,8 +7,8 @@ let api_url = "http://localhost:8989";
|
||||
print("Getting node information:");
|
||||
try {
|
||||
let node_info = mycelium_get_node_info(api_url);
|
||||
print(`Node subnet: ${node_info.subnet}`);
|
||||
print(`Node public key: ${node_info.publicKey}`);
|
||||
print(`Node subnet: ${node_info.nodeSubnet}`);
|
||||
print(`Node public key: ${node_info.nodePubkey}`);
|
||||
} catch(err) {
|
||||
print(`Error getting node info: ${err}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user