Skip to content

Commit

Permalink
chore: readme update example
Browse files Browse the repository at this point in the history
  • Loading branch information
chancehudson committed Feb 15, 2023
1 parent 873e5c3 commit 3634998
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ npm i poseidon-solidity
import "poseidon-solidity/PoseidonT3.sol";
contract Example {
function hashInput(uint input0, uint input1) public {
function combine(uint input0, uint input1) public {
uint out = PoseidonT3.hash([input0, input1]);
// do something with it
}
}
```

Expand Down

0 comments on commit 3634998

Please sign in to comment.