@@ -2,7 +2,7 @@ import { networkIDs, pvm, utils } from "@flarenetwork/flarejs";
22import { issuePChainTx , localFlareContext } from "./utils" ;
33import { runTest } from "./runner" ;
44
5- const blsPublicKey = '0x917386c374aab0ea3d2bda96768f2be1f0b11483cd5c41bd9cddd3892b693ab84efecc6cf70300d614dcdc6d298ab659' ;
5+ const blsPublicKey = '0x917386c374aab0ea3d2bda96768f2be1f0b11483cd5c41bd9cddd3892b693ab84efecc6cf70300d614dcdc6d298ab659' ;
66const blsSignature = '0x81c7174fc3bc9bbf00a1e26cc7b177d92589b517df5c46844498c14ede655bfedb89929e3d2974210983a1ff06a2a39b05208974a2d3dddac4948bcc81f367717d960be9704b775f21022d639b439135d34b7fb1f2bacbb5ffab3ddafc86220f'
77
88async function addValidator ( nodeID : string , endTime : number , weight : number ) {
@@ -22,7 +22,7 @@ async function addValidator(nodeID: string, endTime: number, weight: number) {
2222 networkIDs . PrimaryNetworkID . toString ( ) ,
2323 BigInt ( Date . now ( ) ) / 1000n ,
2424 BigInt ( endTime ) ,
25- BigInt ( weight * 1e9 ) ,
25+ BigInt ( weight * 1e9 ) ,
2626 [ utils . bech32ToBytes ( ctx . addressP ) ] ,
2727 [ utils . bech32ToBytes ( ctx . addressP ) ] ,
2828 10_0000 ,
@@ -38,6 +38,6 @@ async function addValidator(nodeID: string, endTime: number, weight: number) {
3838
3939runTest ( ( ) => addValidator (
4040 'NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ' ,
41- Math . ceil ( Date . now ( ) / 1000 ) + 14 * 24 * 60 * 60 + 5 , // 14 days (+ 5 seconds) from now
41+ Math . ceil ( Date . now ( ) / 1000 ) + 14 * 24 * 60 * 60 + 5 , // 14 days (+ 5 seconds) from now
4242 10_000
4343) )
0 commit comments