changed from iv to nonce
This commit is contained in:
@@ -84,4 +84,9 @@ export async function getPaymentChannelInfo(provider: any,account: string) : Pro
|
||||
nonce: channelInfo.nonce,
|
||||
isActive: channelInfo.isActive,
|
||||
};
|
||||
}
|
||||
|
||||
export async function getNextNonce(provider: any,account: string) : Promise<BigInt> {
|
||||
const channelInfo = await getPaymentChannelInfo(provider, account);
|
||||
return channelInfo.nonce.valueOf() + BigInt(1);
|
||||
}
|
||||
Reference in New Issue
Block a user