Skip to content

Commit

Permalink
fix: fetch block data for sortKey on viewState evaluation - remove Bl…
Browse files Browse the repository at this point in the history
…ockData type
  • Loading branch information
asiaziola committed Mar 4, 2024
1 parent a192e10 commit 482bc15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/contract/HandlerBasedContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import { ContractInteractionState } from './states/ContractInteractionState';
import { Buffer, Crypto } from 'warp-isomorphic';
import { VrfPluginFunctions } from '../core/WarpPlugin';
import { createData, DataItem, Signer, tagsExceedLimit } from 'warp-arbundles';
import { BlockData } from 'arweave/node/blocks';

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

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

let currentBlockData: BlockData;
let currentBlockData;
if (this.warp.environment == 'mainnet' && !(this.warp.interactionsLoader.type() === 'arweave')) {
currentBlockData = await this._arweaveWrapper.warpGwBlock();
} else {
Expand Down

0 comments on commit 482bc15

Please sign in to comment.