Skip to content

Commit

Permalink
Update CLI to use new Fragment.format style.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 20, 2019
1 parent a05027c commit 9a41199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src.ts/bin/ethers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ class CompilePlugin extends Plugin {
output[contract.name] = {
bytecode: contract.bytecode,
runtime: contract.runtime,
interface: contract.interface.fragments.map((f) => f.format(true))
interface: contract.interface.fragments.map((f) => f.format(ethers.utils.FormatTypes.full))
};
});

Expand Down Expand Up @@ -715,7 +715,7 @@ class DeployPlugin extends Plugin {
Contract: codes[0].name,
Address: contract.address,
Bytecode: codes[0].bytecode,
Interface: codes[0].interface.fragments.map((f) => f.format(true))
Interface: codes[0].interface.fragments.map((f) => f.format(ethers.utils.FormatTypes.full))
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src.ts/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function generate(contract: ContractCode, bytecode?: string): string {
lines.push(" static ABI(): Array<string> {");
lines.push(" return [");
contract.interface.fragments.forEach((fragment) => {
lines.push(` "${fragment.format(true)}",`);
lines.push(` "${fragment.format(ethers.utils.FormatTypes.full)}",`);
});
lines.push(" ];");
lines.push(" }");
Expand Down

0 comments on commit 9a41199

Please sign in to comment.