Skip to content

Commit

Permalink
Fix crash in current_account_id implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Dec 15, 2021
1 parent d1bbbd1 commit 004061b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ const imports = (ctx) => {
const mem = new Uint8Array(ctx.memory.buffer)
mem.set(registers[register_id] || Buffer.from([]), Number(ptr));
},

current_account_id: (register_id) => {
registers[register_id] = Buffer.from(ctx.contract_id);
registers[register_id] = Buffer.from(ctx.contractId);
},
signer_account_id: prohibitedInView('signer_account_id'),
signer_account_pk: prohibitedInView('signer_account_pk'),
Expand Down

0 comments on commit 004061b

Please sign in to comment.