@solarity/hardhat-migrate
Version:
The simplest way to deploy smart contracts
19 lines (13 loc) • 488 B
text/typescript
import { Interface } from "ethers";
import { BaseAdapter } from "./BaseAdapter.js";
import { CatchClassError } from "../../utils/index.js";
import type { BytecodeFactory } from "../../../types/adapter.js";
export class BytecodeAdapter extends BaseAdapter {
public getInterface(instance: BytecodeFactory): Interface {
return Interface.from(instance.abi);
}
public getContractName(instance: BytecodeFactory): string {
return instance.contractName;
}
}