diff --git a/src/contract/Contract.ts b/src/contract/Contract.ts index f1b2c3b6..4d6da3c5 100644 --- a/src/contract/Contract.ts +++ b/src/contract/Contract.ts @@ -155,7 +155,8 @@ export interface Contract { tags?: Tags, transfer?: ArTransfer, caller?: string, - signal?: AbortSignal + signal?: AbortSignal, + sortKey?: string ): Promise>; /** diff --git a/src/contract/HandlerBasedContract.ts b/src/contract/HandlerBasedContract.ts index c062eb7c..093f05a7 100644 --- a/src/contract/HandlerBasedContract.ts +++ b/src/contract/HandlerBasedContract.ts @@ -281,14 +281,15 @@ export class HandlerBasedContract implements Contract { tags: Tags = [], transfer: ArTransfer = emptyTransfer, caller?: string, - signal?: AbortSignal + signal?: AbortSignal, + sortKey?: string ): Promise> { this.logger.info('View state for', this._contractTxId); return await this.callContract( input, 'view', caller, - undefined, + sortKey, tags, transfer, false,