Skip to content

Commit

Permalink
Hotfix in checkStatus networkMode
Browse files Browse the repository at this point in the history
  • Loading branch information
FabijanC committed Oct 18, 2021
1 parent fe476c4 commit edd8ba0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shardlabs/starknet-hardhat-plugin",
"version": "0.2.1",
"version": "0.2.2",
"description": "Plugin for using Starknet tools within Hardhat projects",
"main": "dist/index.js",
"files": [
Expand Down
23 changes: 13 additions & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ export class StarknetContract {
},
networkMode: "host"
}
);
if (executed.statusCode) {
const msg = `Could not ${kind} ${functionName}:\n` + executed.stderr.toString();
const replacedMsg = adaptLog(msg);
throw new HardhatPluginError(PLUGIN_NAME, replacedMsg);
}
return executed;
);

if (executed.statusCode) {
const msg = `Could not ${kind} ${functionName}:\n` + executed.stderr.toString();
const replacedMsg = adaptLog(msg);
throw new HardhatPluginError(PLUGIN_NAME, replacedMsg);
}

return executed;
}

private async checkStatus(txID: string) {
Expand All @@ -175,7 +175,10 @@ export class StarknetContract {
"--id", txID,
"--gateway_url", this.gatewayUrl,
"--feeder_gateway_url", this.feederGatewayUrl
]
],
{
networkMode: "host"
}
);

if (executed.statusCode) {
Expand Down

0 comments on commit edd8ba0

Please sign in to comment.