Skip to content

Commit

Permalink
fix: unused variable compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chancehudson committed Feb 18, 2023
1 parent ac20b2f commit a3811e4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/PoseidonT2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ library PoseidonT2 {

// See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40
// Based on: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js
function hash(uint[1] memory inputs) public pure returns (uint) {
function hash(uint[1] memory) public pure returns (uint) {
assembly {
// memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos
// we can use it in inline assembly because we're not calling e.g. keccak
Expand Down
2 changes: 1 addition & 1 deletion contracts/PoseidonT3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ library PoseidonT3 {

// See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40
// Based on: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js
function hash(uint[2] memory inputs) public pure returns (uint) {
function hash(uint[2] memory) public pure returns (uint) {
assembly {
// memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos
// we can use it in inline assembly because we're not calling e.g. keccak
Expand Down
2 changes: 1 addition & 1 deletion contracts/PoseidonT4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ library PoseidonT4 {

// See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40
// Based on: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js
function hash(uint[3] memory inputs) public pure returns (uint) {
function hash(uint[3] memory) public pure returns (uint) {
assembly {
// memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos
// we can use it in inline assembly because we're not calling e.g. keccak
Expand Down
2 changes: 1 addition & 1 deletion contracts/PoseidonT5.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ library PoseidonT5 {

// See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40
// Based on: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js
function hash(uint[4] memory inputs) public pure returns (uint) {
function hash(uint[4] memory) public pure returns (uint) {
assembly {
// memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos
// we can use it in inline assembly because we're not calling e.g. keccak
Expand Down
2 changes: 1 addition & 1 deletion contracts/PoseidonT6.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ library PoseidonT6 {

// See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40
// Based on: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js
function hash(uint[5] memory inputs) public pure returns (uint) {
function hash(uint[5] memory) public pure returns (uint) {
assembly {
// memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos
// we can use it in inline assembly because we're not calling e.g. keccak
Expand Down
2 changes: 1 addition & 1 deletion src/buildPoseidon.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ uint constant F = ${F};
// See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40
// Based on: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js
function hash(uint[${T - 1}] memory inputs) public pure returns (uint) {
function hash(uint[${T - 1}] memory) public pure returns (uint) {
assembly {
// memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos
Expand Down

0 comments on commit a3811e4

Please sign in to comment.