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 { - 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);