• inphi's avatar
    cannon: Allow EOF pre-image reads · a2cc2f41
    inphi authored
    This patch fixes a discrepancy in the Go and Solidity FPVM implementations.
    The set of states, wherein their pre-image offsets are at the pre-image
    EOF, is considered valid. The transition for these states is a zero-byte
    pre-image read.
    This behavior is similar to the way Linux handles read(2) syscalls where
    reading at an EOF stream yields zero bytes read.
    
    PreimageOracle.sol is updated to accommodate this by allowing pre-image
    parts to be loaded at the pre-image EOF.
    a2cc2f41
Name
Last commit
Last update
..
L1 Loading commit data...
L2 Loading commit data...
cannon Loading commit data...
dispute Loading commit data...
governance Loading commit data...
legacy Loading commit data...
libraries Loading commit data...
periphery Loading commit data...
test Loading commit data...
universal Loading commit data...
vendor Loading commit data...