Skip to content

Commit 2a13968

Browse files
committed
ts-web/core: playground use WebCryptoSigner
1 parent b189403 commit 2a13968

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client-sdk/ts-web/core/playground/src/startPlayground.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export async function startPlayground() {
3535

3636
// Try sending a transaction.
3737
{
38-
const src = oasis.signature.NaclSigner.fromRandom('this key is not important');
39-
const dst = oasis.signature.NaclSigner.fromRandom('this key is not important');
38+
const src = await oasis.signature.WebCryptoSigner.generate(false);
39+
const dst = await oasis.signature.WebCryptoSigner.generate(false);
4040
console.log('src', src, 'dst', dst);
4141

4242
const chainContext = await nic.consensusGetChainContext();

0 commit comments

Comments
 (0)