Skip to content

Commit

Permalink
Update docs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
FabijanC committed Jul 11, 2022
1 parent 44246e2 commit 2661767
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you've used Hardhat 👷‍♀️👷‍♂️ and want to develop for Starkn
## Install

```
npm install @shardlabs/starknet-hardhat-plugin --save-dev
npm i @shardlabs/starknet-hardhat-plugin --save-dev
```

Add the following line to the top of your `hardhat.config.ts` (or `hardhat.config.js`):
Expand Down Expand Up @@ -348,7 +348,9 @@ it("should return transaction data and transaction receipt", async function () {
const txHash = await contract.invoke("increase_balance", { amount: 10 });

const receipt = await starknet.getTransactionReceipt(txHash);
console.log(receipt.events);
const decodedEvents = contract.decodeEvents(receipt.events);
// decodedEvents contains hex data array converted to a structured object
// { name: "increase_balance_called", data: { current_balance: 0n, amount: 10n } }
});
```

Expand Down Expand Up @@ -698,4 +700,4 @@ An example Hardhat project using this plugin can be found [here](https://github.

## Contribute

If you're a developer willing to contribute, go through the [development readme](/README-dev.md).
If you're a developer willing to contribute, go through [the development readme](/README-dev.md).

0 comments on commit 2661767

Please sign in to comment.