fix poseidon contract bug

This commit is contained in:
poma 2020-10-26 16:08:57 +03:00
parent 5beb6aee94
commit c4496aecc8
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

@ -116,7 +116,7 @@ function createCode(nInputs) {
// We ignore the pointer and the length and just load t values to the state
// (Stack positions 0-{t-1}) If the array is shorter, we just set zeros.
for (let i=0; i<t; i++) {
C.push(0x44+(0x20*(5-i)));
C.push(0x44+(0x20*(t-1-i)));
C.calldataload();
}