Skip to content

Commit 19cbd8a

Browse files
committed
Fix incorrect ABI instantiation for init with parameters
1 parent 97be353 commit 19cbd8a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/cli/src/commands/init.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import fs from 'node:fs';
22
import os from 'node:os';
33
import path from 'node:path';
44
import { filesystem, print, prompt, system } from 'gluegun';
5-
import immutable from 'immutable';
65
import { Args, Command, Flags } from '@oclif/core';
76
import { Network } from '@pinax/graph-networks-registry';
87
import { appendApiVersionForGraph } from '../command-helpers/compiler.js';
@@ -229,11 +228,7 @@ export default class InitCommand extends Command {
229228
} else {
230229
try {
231230
abi = sourcifyContractInfo
232-
? new EthereumABI(
233-
DEFAULT_CONTRACT_NAME,
234-
undefined,
235-
immutable.fromJS(sourcifyContractInfo.abi),
236-
)
231+
? sourcifyContractInfo.abi
237232
: await contractService.getABI(ABI, network, fromContract!);
238233
} catch (e) {
239234
this.exit(1);
@@ -635,7 +630,7 @@ async function processInitForm(
635630
initDebugger.extend('processInitForm')(
636631
"infoFromSourcify: '%s'/'%s'",
637632
initStartBlock,
638-
initContractName
633+
initContractName,
639634
);
640635
}
641636

0 commit comments

Comments
 (0)