Skip to content

Commit

Permalink
(fix) #5 - fix spelling in README, change exception to
Browse files Browse the repository at this point in the history
HardhatPluginException.
  • Loading branch information
rrw-zilliqa committed Mar 12, 2023
1 parent cc84ca1 commit d9a3ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ await contract.Set(12);

### Get field value

If a given contract has a filed named `msg` is possible to get its current value using a function call to `msg()`
If a given contract has a field named `msg` is possible to get its current value using a function call to `msg()`

```typescript
const msg = await contract.msg();
Expand Down
2 changes: 1 addition & 1 deletion src/ScillaContractDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async function deploy_from_file(

if (!sc.isDeployed()) {
let txnErrors = stringifyTransactionErrors(tx);
throw new Error(`Scilla contract was not deployed - status ${sc.status} from ${tx.id}, errors: ${txnErrors}`)
throw new HardhatPluginError(`Scilla contract was not deployed - status ${sc.status} from ${tx.id}, errors: ${txnErrors}`)
}
return [tx, sc];
}
Expand Down

0 comments on commit d9a3ff4

Please sign in to comment.