njkumr
6825d5ca3a
ethereum: adding hash check in verifyVM ( #1851 )
...
* adding a check to verify the vm.hash against the hash of the body and tests for the same
2023-01-24 16:10:52 +00:00
Hendrik Hofstadt
9b50158a3f
add: safety check against signatory being address(0) ( #2021 )
...
* add: safety check against signatory being address(0)
Change-Id: I0e0b32c9d9b8501cfe57b8c672441314774c009f
* evm: add revert message and fix tests
Co-authored-by: Rasul <rasul.yunusov282750@gmail.com>
Co-authored-by: A5 Pickle <a5-pickle@users.noreply.github.com>
2023-01-11 18:32:48 +01:00
Karl Kempe
9df96ac666
Fix domain separator and add more tests
2022-09-19 13:42:38 -04:00
Karl Kempe
d8adb6a700
Add ERC20 permit
2022-09-19 13:42:38 -04:00
Kevin Peters
b1081d7d93
ethereum: Simplified forked chain check
...
No longer need to return uint16 max in chainId() for forked chains
2022-09-09 13:16:27 -05:00
Kevin Peters
ae04a305f3
ethereum: fixed tests
2022-09-09 13:16:27 -05:00
Kevin Peters
9d477e0585
ethereum: EVM fork protection
...
Added a `uint256 evmChainId` state variable to the Core, Token and NFT Bridge
contracts. `evmChainId` is compared to `block.chainid` in the `chainId`
function. When they don't match, a "bad fork" Chain ID is returned,
otherwise the Wormhole Chain ID is returned.
2022-09-09 13:16:27 -05:00
Csongor Kiss
fd540c91b4
ethereum: Check that bytes32 fits into 20 bytes before truncating ( #1457 )
2022-08-23 14:41:03 -04:00
Csongor Kiss
9510bb47d9
ethereum: Add property test on quorum
...
It should always be possible to reach quorum
2022-08-23 15:06:04 +02:00
Csongor Kiss
7889eb08ee
ethereum: Fix test name so forge runs it
2022-08-23 15:06:04 +02:00
Csongor Kiss
2e890f02b3
ethereum: be more explicit about invalid guardian + test
2022-08-09 20:02:47 +01:00
Csongor Kiss
3e051e97b6
ethereum: Init foundry project and add installer for native solc
2022-08-09 20:02:47 +01:00