UNPKG

@nodeset/contracts

Version:

Protocol for accessing NodeSet's Constellation Ethereum staking network

18 lines (12 loc) 612 B
import { RocketNodeManager } from '../_utils/artifacts'; // Set a node's timezone location export async function setTimezoneLocation(timezoneLocation, txOptions) { // Load contracts const rocketNodeManager = await RocketNodeManager.deployed(); // Set timezone location await rocketNodeManager.setTimezoneLocation(timezoneLocation, txOptions); // Get timezone location let nodeTimezoneLocation = await rocketNodeManager.getNodeTimezoneLocation.call(txOptions.from); // Check assert.strictEqual(nodeTimezoneLocation, timezoneLocation, 'Incorrect updated timezone location'); }