Skip to content

Commit

Permalink
[worker] fix getting nonce for unshield (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb authored Apr 19, 2024
1 parent dda004c commit 3eb0e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/worker-api/src/integriteeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class IntegriteeWorker extends Worker {
amount: number,
options: CallOptions = {} as CallOptions
): Promise<Hash> {
const nonce = await this.getNonce(accountOrPubKey, mrenclave, options);
const nonce = await this.getNonce(accountOrPubKey, shard, options);
const shardT = this.createType('ShardIdentifier', bs58.decode(shard));
const params = this.createType('BalanceUnshieldArgs', [fromIncognitoAddress, toPublicAddress, amount, shardT])
const call = createTrustedCall(this, ['balance_unshield', 'BalanceUnshieldArgs'], accountOrPubKey, shardT, mrenclave, nonce, params);
Expand Down

0 comments on commit 3eb0e66

Please sign in to comment.