Repository navigation
ox@1.8.16
Patch Changes
-
#611
27bac43Thanks @jxom! - FixedAbiParameters.decodeto limit the total number of bytes read to 32 times the size of the data plus the repeated-read allowance, and to throw when dynamic values with overlapping data exceed it. -
#613
af4199bThanks @jxom! - FixedAbiFunction.decodeDataandAbiError.decodeto throwSelectorMismatchErrorwhen the selector indatadoes not match the item or one of its overloads. -
#615
a45444aThanks @jxom! - FixedAbiParameters.decodeto throw when the 32-byte slot of a fixed-sizebytesNvalue is cut short, as it does for other static types. -
#617
8f4da51Thanks @jxom! - FixedAbiParameters.encodeto rejectbytesandbytesNvalues with an odd number of hex digits, andTypedData.assertto reject suchbytesNvalues, instead of encoding them with a trailing zero nibble. -
#619
2f8ee9cThanks @jxom! - FixedAbiEvent.decodeto resolve overloaded events by the selector intopics[0]instead of always decoding with the overload picked by name. -
#621
32f10f7Thanks @jxom! - FixedAbiEvent.extractLogsto return keyedargsfor events with both named and unnamed inputs, matchingAbiEvent.decode, and fixedAbiEvent.assertArgsand theargsfilter to reject positional arguments compared against keyed arguments. -
#623
9b5aefeThanks @jxom! - FixedAbiEvent.decode,AbiEvent.decodeLogandAbiEvent.extractLogsto reject indexedaddress,bool,intNanduintNtopics that are not canonical 32-byte ABI words, asAbiParameters.decodedoes. -
#624
9e7197bThanks @jxom! - FixedAddress.fromPublicKeyto throwPublicKey.InvalidErrorfor a compressed public key instead of deriving an address from thexcoordinate alone. -
#626
8fd15edThanks @jxom! - FixedAuthorization.fromTupleandAuthorization.fromRpcto throwHex.IntegerOutOfRangeErrorfor a chain ID that is not a safe integer instead of returning a rounded orNaNchain ID. -
#628
ac62b90Thanks @jxom! - FixedAuthorization.fromTupleto throwAuthorization.InvalidErrorunless the tuple has three or six elements, andTxEnvelopeEip7702.deserializeto require six-element authorization tuples. -
#630
d472e23Thanks @jxom! - FixedUserOperation.hashfor EntryPoint 0.7 inox/erc4337to hash the sameinitCodeasUserOperation.toPacked, so afactorywithoutfactoryDatais included in the hash. -
#632
3627f73Thanks @jxom! - FixedExecute.decodeDataandExecute.decodeBatchOfBatchesDatainox/erc7821to decode only calldata in their own execution modes and throwExecute.UnsupportedModeErrorfor any other mode. -
#634
24fb8d1Thanks @jxom! - FixedKeystore.encryptandKeystore.decryptto throwKeystore.InvalidKeySizeErrorwhen the key is shorter than 32 bytes. -
#636
89c70dfThanks @jxom! - FixedSecp256k1.verifyto hash the payload with sha256 whenhash: trueis used withaddress, matching thepublicKeyform. -
#638
19c3335Thanks @jxom! - FixedSignature.assertto reject ayParitythat is not exactly0or1, andSignature.toTupleto throw on an invalid or missingyParityinstead of encoding it by truthiness. -
#640
7a1a915Thanks @jxom! - FixedSiwe.parseMessageto return an empty object when a message has text that is not part of the EIP-4361 prefix or suffix, such asExpiration TimeandNot Beforelines that are out of order, and to parse in linear time. -
#642
f620088Thanks @jxom! - FixedSiwe.createMessageto throwInvalidMessageFieldErrorwhenrequestIdcontains a line feed or carriage return. -
#644
f3a6299Thanks @jxom! - FixedTxEnvelopeTempo.assert,TxEnvelopeTempo.serialize, and TempoTransactionRequest.fromRpcto throw for a fee payer signature whoseyParityis not0or1, instead of encoding it as1. -
#646
1081276Thanks @jxom! - FixedKeyAuthorization.from,toTuple, andtoRpc(and theox/zod/tempoScopeschema) to reject a scope withrecipientsand noselector. -
#648
3417895Thanks @jxom! - FixedSignatureEnvelope.assert,deserialize,fromRpc, andtoRpcto reject a keychain signature whose inner signature is itself a keychain signature. -
#650
2b48062Thanks @jxom! - FixedSignatureEnvelope.assertandSignatureEnvelope.validateto reject an envelope with an unsupportedtype. -
#652
a15cab8Thanks @jxom! - FixedTxEnvelopeTempo.assertto throwInvalidValidityBoundErrorwhenvalidBeforeorvalidAfteris not a non-negative safe integer number, instead of serializing a bigint or hex bound as unset. -
#654
40f9facThanks @jxom! - FixedSignatureEnvelope.deserializeandSignatureEnvelope.fromRpcto reject WebAuthn signatures larger than the 2048-byte protocol maximum. -
#656
f14c9beThanks @jxom! - FixedTxEnvelopeLegacy.assert,TxEnvelopeEip2930.assert,TxEnvelopeEip1559.assertandTxEnvelopeTempo.assertto throwInvalidChainIdErrorfor achainIdthat is not a positive safe integer. -
#658
b06a125Thanks @jxom! - FixedTxEnvelopeLegacy.deserializeto validate unsigned transactions and to reject nested lists, avabove the safe integer range, andgasPrice,rorsvalues longer than 32 bytes. -
#660
f6d2f2bThanks @jxom! - FixedTxEnvelopeLegacy.hash(withpresign) andTxEnvelopeLegacy.getSignPayloadto derive the chain ID from an EIP-155vwhen the envelope has nochainId. -
#662
bf4a8daThanks @jxom! - FixedTxEnvelopeLegacy.serializeto throw when an envelope'svdoes not match itschainId, and to throwSignature.InvalidVErrorwhenvis not a valid parity for the givenchainId. -
#664
b1cb7baThanks @jxom! - FixedTypedData.extractEip712DomainTypesto include every domain field that is present, so a stringchainIdis hashed instead of left out of the derived domain. -
#666
07e1148Thanks @jxom! - FixedValue.fromandValue.formatto trim trailing zeros in time linear in the length of the fraction. -
#668
fa5a1f1Thanks @jxom! - FixedRegistration.verifyinox/webauthnto derivedeviceTypefrom the backup eligibility (BE) flag and to always returnbackedUpfrom the backup state (BS) flag. -
#670
90af78bThanks @jxom! - Fixedox/zod/tempoSignatureEnvelopeto deriveyParityfromvvalues aboveNumber.MAX_SAFE_INTEGERexactly and to reject a secp256k1 RPC signature that has neitheryParitynor a supportedv.