Skip to content

ox@1.8.19

Choose a tag to compare

@github-actions github-actions released this 21 Nov 00:48
· 11 commits to main since this release
ac7af14

Patch Changes

  • #693 d7b57e1 Thanks @gomesalexandre! - Fixed Authorization.toRpc (and so TransactionRequest.toRpc, Transaction.toRpc and the eip7702Auth of UserOperation.toRpc) to encode r and s as uint256 quantities without leading zeros, which geth-based nodes require.

  • #690 3f1730c Thanks @gomesalexandre! - Fixed BinaryStateTree.merkelize hashing a 32-byte zero value as an empty leaf, which did not match EIP-7864.

  • #704 9c3280b Thanks @jxom! - Fixed BlockOverrides.toRpc and the zod BlockOverrides schemas to encode prevRandao as a 32-byte hash.

  • #703 b31cd5d Thanks @jxom! - Added requestsHash (EIP-7685) to Block.Block, Block.toRpc and the Block zod schemas, so post-Prague blocks no longer lose it on a round trip.

  • #712 a1641a2 Thanks @HereForTheTechNFT! - Fixed Siwe.validateMessage to assume the https scheme when the message omits scheme, per EIP-4361.

  • #705 061ebb0 Thanks @jxom! - Fixed Siwe.createMessage and Siwe.parseMessage to accept an IP literal domain with an optional port, such as [::1]:3000.

  • #695 ccbb1af Thanks @gomesalexandre! - Fixed Siwe.isUri to validate the authority of URIs that have a path, so Siwe.createMessage rejects a uri or resource such as uri://[::300.0.0.0]/p the same way it already rejected uri://[::300.0.0.0].

  • #705 061ebb0 Thanks @jxom! - Fixed Siwe.createMessage and Siwe.parseMessage accepting a comma in scheme.

  • #705 061ebb0 Thanks @jxom! - Fixed Siwe.createMessage to throw InvalidMessageFieldError when statement contains a carriage return, U+2028 or U+2029.

  • #691 6b94083 Thanks @gomesalexandre! - Fixed Transaction.toRpc to encode a legacy transaction's v without the one-byte limit, so EIP-155 transactions whose v is above 255 (chain IDs from 110) no longer throw Hex.IntegerOutOfRangeError.

  • #694 f0aaee7 Thanks @gomesalexandre! - Fixed the ox/zod Authorization.Signed schemas (and so Transaction.Eip7702) to accept RPC r and s values below 2**248, which nodes send without leading zeros, decoding them to 32-byte hex like Authorization.fromRpc and encoding them back to quantities.

  • #701 4c70533 Thanks @Iamsohungrynow! - Fixed the zod Signature.Legacy schema to accept EIP-155 v values above 255.