From a3811e497c5d55f219cd6e2bdc703dc9e72fe25a Mon Sep 17 00:00:00 2001 From: Chance Date: Sat, 18 Feb 2023 11:56:13 -0600 Subject: [PATCH] fix: unused variable compiler warning --- contracts/PoseidonT2.sol | 2 +- contracts/PoseidonT3.sol | 2 +- contracts/PoseidonT4.sol | 2 +- contracts/PoseidonT5.sol | 2 +- contracts/PoseidonT6.sol | 2 +- src/buildPoseidon.mjs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/PoseidonT2.sol b/contracts/PoseidonT2.sol index 5dfd4cd..7fcbcdd 100644 --- a/contracts/PoseidonT2.sol +++ b/contracts/PoseidonT2.sol @@ -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 diff --git a/contracts/PoseidonT3.sol b/contracts/PoseidonT3.sol index 54f58a9..0bc9754 100644 --- a/contracts/PoseidonT3.sol +++ b/contracts/PoseidonT3.sol @@ -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 diff --git a/contracts/PoseidonT4.sol b/contracts/PoseidonT4.sol index f3d9c24..bb7c1bc 100644 --- a/contracts/PoseidonT4.sol +++ b/contracts/PoseidonT4.sol @@ -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 diff --git a/contracts/PoseidonT5.sol b/contracts/PoseidonT5.sol index 7a33ab4..230d342 100644 --- a/contracts/PoseidonT5.sol +++ b/contracts/PoseidonT5.sol @@ -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 diff --git a/contracts/PoseidonT6.sol b/contracts/PoseidonT6.sol index 99c5715..a1c7c4a 100644 --- a/contracts/PoseidonT6.sol +++ b/contracts/PoseidonT6.sol @@ -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 diff --git a/src/buildPoseidon.mjs b/src/buildPoseidon.mjs index 36b090c..c310c1c 100644 --- a/src/buildPoseidon.mjs +++ b/src/buildPoseidon.mjs @@ -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