Skip to content

Commit c1ccf67

Browse files
ioshkanej
authored andcommitted
chore:Fix the typo and replace 'this' with the class in a static method
1 parent c4278b6 commit c1ccf67

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

packages/hardhat-plugin-viem/src/ignition-module-results-to-viem-contracts.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ type ContractNameOfContractFuture<ContractFutureT> =
4949

5050
export type AbiOf<ContractDeploymentFutureT> =
5151
ContractDeploymentFutureT extends ContractDeploymentFuture<
52-
infer ContractDepploymentAbiT
52+
infer ContractDeploymentAbi
5353
>
54-
? ContractDepploymentAbiT
54+
? ContractDeploymentAbi
5555
: ContractDeploymentFutureT extends ContractAtFuture<infer ContractAbiT>
5656
? ContractAbiT
5757
: never;

packages/hardhat-plugin-viem/src/viem-ignition-helper.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class ViemIgnitionHelper {
176176
Object.entries(ignitionModule.results).map(
177177
async ([name, contractFuture]) => [
178178
name,
179-
await this._getContract(
179+
await ViemIgnitionHelper._getContract(
180180
hre,
181181
contractFuture,
182182
result.contracts[contractFuture.id]
@@ -199,7 +199,7 @@ export class ViemIgnitionHelper {
199199
);
200200
}
201201

202-
return this._convertContractFutureToViemContract(
202+
return ViemIgnitionHelper._convertContractFutureToViemContract(
203203
hre,
204204
future,
205205
deployedContract
@@ -215,15 +215,15 @@ export class ViemIgnitionHelper {
215215
case FutureType.NAMED_ARTIFACT_CONTRACT_DEPLOYMENT:
216216
case FutureType.NAMED_ARTIFACT_LIBRARY_DEPLOYMENT:
217217
case FutureType.NAMED_ARTIFACT_CONTRACT_AT:
218-
return this._convertHardhatContractToViemContract(
218+
return ViemIgnitionHelper._convertHardhatContractToViemContract(
219219
hre,
220220
future,
221221
deployedContract
222222
);
223223
case FutureType.CONTRACT_DEPLOYMENT:
224224
case FutureType.LIBRARY_DEPLOYMENT:
225225
case FutureType.CONTRACT_AT:
226-
return this._convertArtifactToViemContract(
226+
return ViemIgnitionHelper._convertArtifactToViemContract(
227227
hre,
228228
future,
229229
deployedContract
@@ -241,7 +241,7 @@ export class ViemIgnitionHelper {
241241
): Promise<GetContractReturnType> {
242242
return hre.viem.getContractAt(
243243
future.contractName,
244-
this._ensureAddressFormat(deployedContract.address)
244+
ViemIgnitionHelper._ensureAddressFormat(deployedContract.address)
245245
);
246246
}
247247

@@ -265,7 +265,9 @@ export class ViemIgnitionHelper {
265265

266266
const viem = await import("viem");
267267
const contract = viem.getContract({
268-
address: this._ensureAddressFormat(deployedContract.address),
268+
address: ViemIgnitionHelper._ensureAddressFormat(
269+
deployedContract.address
270+
),
269271
abi: future.artifact.abi,
270272
client: {
271273
public: publicClient,

0 commit comments

Comments
 (0)