Skip to content

Commit

Permalink
Merge pull request #186 from OriginTrail/chore/encode-data-example
Browse files Browse the repository at this point in the history
encode_data task example
  • Loading branch information
NZT48 authored Jul 27, 2023
2 parents 6e3005a + e936357 commit 827aa41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ These tasks can be run using the `npx hardhat <task-name>` command. For example,
npx hardhat decode --data <bytes-data>
```

Usage example of `encode_data` task. Here we want to call ProofManagerV1 function called setReq, and this function can be called only through `forwardCall` in HubController and encoding arguments for this function can be done by using this task:
```sh
npx hardhat encode_data --contract-name ProofManagerV1 --function-name setReq 1 true
```
Alternatively, encoded data can be produced from Remix by copying prepared calldata from ProofManagerV1 setReq call.

## Contracts deployment on parachains

Update environment use OTP_DEVNET/OTP_TESTNET/OTP_MAINNET
Expand Down

0 comments on commit 827aa41

Please sign in to comment.