Skip to content

Commit

Permalink
Fix incorrect ABI instantiation for init with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
0237h committed Jan 13, 2025
1 parent 97be353 commit 19cbd8a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { filesystem, print, prompt, system } from 'gluegun';
import immutable from 'immutable';
import { Args, Command, Flags } from '@oclif/core';
import { Network } from '@pinax/graph-networks-registry';
import { appendApiVersionForGraph } from '../command-helpers/compiler.js';
Expand Down Expand Up @@ -229,11 +228,7 @@ export default class InitCommand extends Command {
} else {
try {
abi = sourcifyContractInfo
? new EthereumABI(
DEFAULT_CONTRACT_NAME,
undefined,
immutable.fromJS(sourcifyContractInfo.abi),
)
? sourcifyContractInfo.abi
: await contractService.getABI(ABI, network, fromContract!);
} catch (e) {
this.exit(1);
Expand Down Expand Up @@ -635,7 +630,7 @@ async function processInitForm(
initDebugger.extend('processInitForm')(
"infoFromSourcify: '%s'/'%s'",
initStartBlock,
initContractName
initContractName,
);
}

Expand Down

0 comments on commit 19cbd8a

Please sign in to comment.