Skip to content

Commit

Permalink
fix: V2Hub or contract runner not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jaensen committed Sep 25, 2024
1 parent 1264561 commit a21cf17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/v2/v2Avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export class V2Avatar implements AvatarInterfaceV2 {
const pathfinder = new Pathfinder(this.sdk.circlesConfig.v2PathfinderUrl!);
const flowMatrix = await pathfinder.getArgsForPath(this.address, to, amount.toString());

if (!this.sdk.v2Hub || this.sdk.contractRunner) {
throw new Error('V2Hub or contract runner not available');
if (!this.sdk.v2Hub) {
throw new Error('V2Hub not available');
}

const operateFlowMatrixCallData = this.sdk.v2Hub.interface.encodeFunctionData("operateFlowMatrix", [flowMatrix.flowVertices, flowMatrix.flowEdges, flowMatrix.streams, flowMatrix.packedCoordinates]);
Expand Down

0 comments on commit a21cf17

Please sign in to comment.