[eth] Finalize accumulator contract (#960)

This commit is contained in:
Ali Behjati 2023-07-18 12:57:29 +03:30 committed by GitHub
parent 9bdc493ce6
commit dcec1e9328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

2
package-lock.json generated
View File

@ -57990,7 +57990,7 @@
},
"target_chains/ethereum/contracts": {
"name": "@pythnetwork/pyth-evm-contract",
"version": "1.3.0-alpha",
"version": "1.3.0",
"license": "ISC",
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.9",

View File

@ -679,6 +679,6 @@ abstract contract Pyth is
}
function version() public pure returns (string memory) {
return "1.3.0-alpha";
return "1.3.0";
}
}

View File

@ -74,7 +74,7 @@ contract ReceiverMessages is ReceiverGetters {
// 66 is the length of each signature
// 1 (guardianIndex) + 32 (r) + 32 (s) + 1 (v)
uint hashIndex = index + (signersLen * 66);
if (hashIndex > encodedVM.length) {
if (hashIndex >= encodedVM.length) {
return (vm, false, "invalid signature length");
}
// Hash the body

View File

@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-evm-contract",
"version": "1.3.0-alpha",
"version": "1.3.0",
"description": "",
"private": "true",
"devDependencies": {