Skip to content

Commit

Permalink
ts-web/core: playground use WebCryptoSigner
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Oct 8, 2024
1 parent b189403 commit 2a13968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client-sdk/ts-web/core/playground/src/startPlayground.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export async function startPlayground() {

// Try sending a transaction.
{
const src = oasis.signature.NaclSigner.fromRandom('this key is not important');
const dst = oasis.signature.NaclSigner.fromRandom('this key is not important');
const src = await oasis.signature.WebCryptoSigner.generate(false);
const dst = await oasis.signature.WebCryptoSigner.generate(false);
console.log('src', src, 'dst', dst);

const chainContext = await nic.consensusGetChainContext();
Expand Down

0 comments on commit 2a13968

Please sign in to comment.