From b0ff485a0e13893c2feec213f0e6668d71165b2f Mon Sep 17 00:00:00 2001 From: Christian Langenbacher <clangenb+gh@protonmail.ch> Date: Fri, 19 Apr 2024 17:42:41 +0200 Subject: [PATCH] [worker] fix getting nonce for unshield --- packages/worker-api/src/integriteeWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker-api/src/integriteeWorker.ts b/packages/worker-api/src/integriteeWorker.ts index 50d946ac..53f5d988 100644 --- a/packages/worker-api/src/integriteeWorker.ts +++ b/packages/worker-api/src/integriteeWorker.ts @@ -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);