diff --git a/package-lock.json b/package-lock.json index 2ce594f8..05d3e5ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol index 361ba388..01ce1542 100644 --- a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol +++ b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol @@ -679,6 +679,6 @@ abstract contract Pyth is } function version() public pure returns (string memory) { - return "1.3.0-alpha"; + return "1.3.0"; } } diff --git a/target_chains/ethereum/contracts/contracts/wormhole-receiver/ReceiverMessages.sol b/target_chains/ethereum/contracts/contracts/wormhole-receiver/ReceiverMessages.sol index bf8fe4c1..43eedddc 100644 --- a/target_chains/ethereum/contracts/contracts/wormhole-receiver/ReceiverMessages.sol +++ b/target_chains/ethereum/contracts/contracts/wormhole-receiver/ReceiverMessages.sol @@ -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 diff --git a/target_chains/ethereum/contracts/package.json b/target_chains/ethereum/contracts/package.json index b9a56715..389e22ed 100644 --- a/target_chains/ethereum/contracts/package.json +++ b/target_chains/ethereum/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/pyth-evm-contract", - "version": "1.3.0-alpha", + "version": "1.3.0", "description": "", "private": "true", "devDependencies": {