@@ -337,8 +337,6 @@ Bytes helper functions
337337- ` #asInteger ` will interpret a stack of bytes as a single arbitrary-precision integer (with MSB first).
338338- ` #asAccount ` will interpret a stack of bytes as a single account id (with MSB first).
339339 Differs from ` #asWord ` only in that an empty stack represents the empty account, not account zero.
340- - ` asAccountNotNil ` will interpret a stack of bytes as a single account id (with MSB first), but will fail if the
341- stack is empty.
342340- ` #asByteStack ` will split a single word up into a ` Bytes ` .
343341- ` #range(WS, N, W) ` access the range of ` WS ` beginning with ` N ` of width ` W ` .
344342- ` #padToWidth(N, WS) ` and ` #padRightToWidth ` make sure that a ` Bytes ` is the correct size.
@@ -353,13 +351,10 @@ Bytes helper functions
353351 rule #asInteger(WS) => Bytes2Int(WS, BE, Unsigned) [concrete]
354352
355353 syntax Account ::= #asAccount ( Bytes ) [symbol(#asAccount), function]
356- syntax AccountNotNil ::= #asAccountNotNil ( Bytes ) [symbol(#asAccountNotNil), function]
357- // ----------------------------------------------------------------------------------------
354+ // ----------------------------------------------------------------------------------
358355 rule #asAccount(BS) => .Account requires lengthBytes(BS) ==Int 0
359356 rule #asAccount(BS) => #asWord(BS) [owise]
360357
361- rule #asAccountNotNil(BS) => #asWord(BS) requires lengthBytes(BS) >Int 0
362-
363358 syntax Bytes ::= #asByteStack ( Int ) [symbol(#asByteStack), function, total]
364359 // -----------------------------------------------------------------------------
365360 rule #asByteStack(W) => Int2Bytes(W, BE, Unsigned) [concrete]
@@ -390,8 +385,7 @@ Accounts
390385
391386``` k
392387 syntax Account ::= ".Account" | Int
393- syntax AccountNotNil = Int
394- // --------------------------
388+ // -----------------------------------
395389
396390 syntax AccountCode ::= Bytes
397391 // ----------------------------
@@ -468,12 +462,12 @@ Productions related to transactions
468462 syntax TxData ::= LegacyTx | AccessListTx | DynamicFeeTx | BlobTx
469463 // -----------------------------------------------------------------
470464
471- syntax LegacyTx ::= LegacyTxData ( nonce: Int, gasPrice: Int, gasLimit: Int, to: Account, value: Int, data: Bytes ) [symbol(LegacyTxData)]
472- | LegacySignedTxData ( nonce: Int, gasPrice: Int, gasLimit: Int, to: Account, value: Int, data: Bytes, networkChainId: Int ) [symbol(LegacySignedTxData)]
473- syntax AccessListTx ::= AccessListTxData ( nonce: Int, gasPrice: Int, gasLimit: Int, to: Account, value: Int, data: Bytes, chainId: Int, accessLists: JSONs ) [symbol(AccessListTxData)]
474- syntax DynamicFeeTx ::= DynamicFeeTxData ( nonce: Int, priorityGasFee: Int, maxGasFee: Int, gasLimit: Int, to: Account, value: Int, data: Bytes, chainId: Int, accessLists: JSONs) [symbol(DynamicFeeTxData)]
475- syntax BlobTx ::= BlobTxData ( nonce: Int, priorityGasFee: Int, maxGasFee: Int, gasLimit: Int, to: AccountNotNil , value: Int, data: Bytes, chainId: Int, accessLists: JSONs, maxBlobGasFee: Int, blobVersionedHashes: List ) [symbol(BlobTxData)]
476- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
465+ syntax LegacyTx ::= LegacyTxData ( nonce: Int, gasPrice: Int, gasLimit: Int, to: Account, value: Int, data: Bytes ) [symbol(LegacyTxData)]
466+ | LegacySignedTxData ( nonce: Int, gasPrice: Int, gasLimit: Int, to: Account, value: Int, data: Bytes, networkChainId: Int ) [symbol(LegacySignedTxData)]
467+ syntax AccessListTx ::= AccessListTxData ( nonce: Int, gasPrice: Int, gasLimit: Int, to: Account, value: Int, data: Bytes, chainId: Int, accessLists: JSONs ) [symbol(AccessListTxData)]
468+ syntax DynamicFeeTx ::= DynamicFeeTxData ( nonce: Int, priorityGasFee: Int, maxGasFee: Int, gasLimit: Int, to: Account, value: Int, data: Bytes, chainId: Int, accessLists: JSONs) [symbol(DynamicFeeTxData)]
469+ syntax BlobTx ::= BlobTxData ( nonce: Int, priorityGasFee: Int, maxGasFee: Int, gasLimit: Int, to: Account , value: Int, data: Bytes, chainId: Int, accessLists: JSONs, maxBlobGasFee: Int, blobVersionedHashes: List ) [symbol(BlobTxData)]
470+ // ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
477471
478472endmodule
479473```
0 commit comments