Skip to content

Commit 482bc15

Browse files
committed
fix: fetch block data for sortKey on viewState evaluation - remove BlockData type
1 parent a192e10 commit 482bc15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/contract/HandlerBasedContract.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import { ContractInteractionState } from './states/ContractInteractionState';
4545
import { Buffer, Crypto } from 'warp-isomorphic';
4646
import { VrfPluginFunctions } from '../core/WarpPlugin';
4747
import { createData, DataItem, Signer, tagsExceedLimit } from 'warp-arbundles';
48-
import { BlockData } from 'arweave/node/blocks';
4948

5049
interface InteractionManifestData {
5150
[path: string]: string;
@@ -852,7 +851,7 @@ export class HandlerBasedContract<State> implements Contract<State> {
852851

853852
const blockHeight = sortKey ? await this._sorter.extractBlockHeight(sortKey) : undefined;
854853

855-
let currentBlockData: BlockData;
854+
let currentBlockData;
856855
if (this.warp.environment == 'mainnet' && !(this.warp.interactionsLoader.type() === 'arweave')) {
857856
currentBlockData = await this._arweaveWrapper.warpGwBlock();
858857
} else {

0 commit comments

Comments
 (0)