Skip to content

Commit

Permalink
witness
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolfo Miranda authored and m00sey committed Oct 5, 2023
1 parent fb203fe commit b91613c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/integration-scripts/witness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ async function run() {
console.log("Witness OOBI resolved")

// Client 1 creates AID with 1 witness
op1 = await client1.identifiers().create('aid1',{
let icpResult1 = await client1.identifiers().create('aid1',{
toad: 1,
wits: ["BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha"]
})
op1 = await icpResult1.op()
while (!op1["done"] ) {
op1 = await client1.operations().get(op1.name);
await new Promise(resolve => setTimeout(resolve, 1000));
Expand Down

0 comments on commit b91613c

Please sign in to comment.