diff --git a/src/contract/HandlerBasedContract.ts b/src/contract/HandlerBasedContract.ts index 0a688dd..f8c89f6 100644 --- a/src/contract/HandlerBasedContract.ts +++ b/src/contract/HandlerBasedContract.ts @@ -468,14 +468,14 @@ export class HandlerBasedContract implements Contract { interactions ? Promise.resolve(interactions) : await interactionsLoader.load( - contractTxId, - cachedState?.sortKey, - // (1) we want to eagerly load dependant contract interactions and put them - // in the interactions' loader cache - // see: https://github.com/warp-contracts/warp/issues/198 - this.getToSortKey(upToSortKey), - this._evaluationOptions - ) + contractTxId, + cachedState?.sortKey, + // (1) we want to eagerly load dependant contract interactions and put them + // in the interactions' loader cache + // see: https://github.com/warp-contracts/warp/issues/198 + this.getToSortKey(upToSortKey), + this._evaluationOptions + ) ]); // (2) ...but we still need to return only interactions up to original "upToSortKey" if (cachedState?.sortKey) { diff --git a/src/contract/Signature.ts b/src/contract/Signature.ts index 9723668..3ce8094 100644 --- a/src/contract/Signature.ts +++ b/src/contract/Signature.ts @@ -37,8 +37,10 @@ export class Signature { } private assertEnvForCustomSigner(walletOrSignature: CustomSignature) { - if (walletOrSignature.type !== 'arweave' && - (!(this.warp.environment == 'mainnet') || !(this.warp.interactionsLoader.type() == 'warp'))) { + if ( + walletOrSignature.type !== 'arweave' && + (!(this.warp.environment == 'mainnet') || !(this.warp.interactionsLoader.type() == 'warp')) + ) { throw new Error( `Unable to use signing function of type: ${walletOrSignature.type} when not in mainnet environment or bundling is disabled.` );