Skip to content

Commit a8bb8eb

Browse files
committed
Use updated APIs
1 parent 3d9516f commit a8bb8eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/hosted-counter/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting chain…</code>
6060
import * as linera from '@linera/client';
6161
import * as signer from '@linera/signer';
6262

63-
const COUNTER_APP_ID = '2b1a0df8868206a4b7d6c2fdda911e4355d6c0115b896d4947ef8e535ee3c6b8';
63+
const COUNTER_APP_ID = '7ecd0211fe97206f5d78829a9e1f16166380ec138cb1f1e19cc162a0b8a036ac';
6464

6565
async function run() {
6666
await linera.default();
6767
const faucet = await new linera.Faucet('http://127.0.0.1:8080');
68-
const emedded_signer = signer.EmbeddedEIP191Signer.fromMnemonic("test test test test test test test test test test test junk");
68+
const emedded_signer = new signer.EmbeddedEIP191Signer("f77a21701522a03b01c111ad2d2cdaf2b8403b47507ee0aec3c2e52b765d7a66");
6969
const wallet = await faucet.createWallet();
70-
// TODO: extract owner from the signer. It's the address of the wallet.
71-
const owner = '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
70+
const owner = emedded_signer.address();
7271
document.getElementById('chain-id').innerText = await faucet.claimChain(wallet, owner);
7372
const client = await new linera.Client(wallet, emedded_signer);
7473
const counter = await client.frontend().application(COUNTER_APP_ID);

linera-protocol

Submodule linera-protocol updated 212 files

0 commit comments

Comments
 (0)