mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-15 12:13:08 +00:00
Merge pull request #642 from mir-protocol/type_0_fix
Small fix for type 0 txns
This commit is contained in:
commit
760a111a63
@ -57,16 +57,7 @@ store_gas_limit:
|
||||
%stack (pos, gas_limit) -> (@TXN_FIELD_GAS_LIMIT, gas_limit, pos)
|
||||
%mstore_current(@SEGMENT_NORMALIZED_TXN)
|
||||
|
||||
// Peak at the RLP to see if the next byte is zero.
|
||||
// If so, there is no value field, so skip the store_to step.
|
||||
// stack: pos
|
||||
DUP1
|
||||
%mload_current(@SEGMENT_RLP_RAW)
|
||||
ISZERO
|
||||
// stack: to_empty, pos
|
||||
%jumpi(parse_value)
|
||||
|
||||
// If we got here, there is a "to" field.
|
||||
PUSH store_to
|
||||
SWAP1
|
||||
// stack: pos, store_to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user