changed from iv to nonce

This commit is contained in:
2025-12-05 19:17:24 +08:00
parent 5a14b8efce
commit 9e3e303dc0
2 changed files with 12 additions and 11 deletions
+5
View File
@@ -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);
}