Repository navigation
ox@1.8.18
Patch Changes
-
#689
03aeea3Thanks @jxom! - FixedAbiParameters.decodeandAbiEvent.decodeto throwAbiParameters.BytesSizeMismatchErrorforbytesNvalues whose padding bytes are not zero. -
#689
03aeea3Thanks @jxom! - Tightened theAbiParameters.decoderead size limit from 32 bytes per byte of data to two, keeping the allowance of 32 bytes per allowed repeated read (256 KiB by default), so that offsets pointing many times at one region can add at most that fixed allowance to the decoded value rather than up to 32 times the data size. -
#689
03aeea3Thanks @jxom! - FixedAbiParameters.encodeand the ABI encoders built on it to throwHex.InvalidHexValueErrorforbytesvalues containing non-hex characters instead of copying those characters into the output. -
#689
03aeea3Thanks @jxom! - FixedAbiEvent.decode,AbiEvent.decodeLogandAbiEvent.extractLogsto reject indexed value topics longer than 32 bytes (Hex.SizeOverflowError),addresstopics with non-hex characters when decoded withchecksumAddress: false(Address.InvalidAddressError, as with checksumming), andbytesNtopics with non-hex characters (Hex.InvalidHexValueError). -
#689
03aeea3Thanks @jxom! - CachedAbiItem.getSignatureHashand the selectors derived from it per ABI item object, which speeds upAbiEvent.decodeLogand encoding with plain ABI items, so an item mutated after it was first hashed keeps its first hash untilCaches.clearruns. -
#689
03aeea3Thanks @jxom! - AddedCbor.DepthLimitExceededError, whichCbor.decodethrows for values nested more than 1024 levels deep instead of overflowing the stack. -
#675
9d8389cThanks @pucedoteth! - Fixed theCbor.NumberTooLargeErrormessage to state the integer rangeCbor.encodesupports (-4294967296to4294967295) instead ofNumber.MAX_SAFE_INTEGER. -
#683
7421689Thanks @jxom! - FixedAbiParameters.encodePackedto throwHex.InvalidLengthErrorforbyteshex values with an odd number of digits instead of returning misaligned data. -
#697
be605c1Thanks @adraffy! - SwitchedEns.normalizefrom@adraffy/ens-normalizeto@adraffy/ens-normalize.ts. Output and error messages are unchanged. The new package is smaller, and normalizing names with emoji no longer fails on Hermes (React Native). -
#683
7421689Thanks @jxom! - FixedSignatureErc6492.universalSignatureValidatorBytecodeto returnfalsewhenecrecoveryields the zero address, so a malformed signature no longer verifies for the zero address. -
#689
03aeea3Thanks @jxom! - ChangedHex.concatto drop the first two characters of every value, as it already did when given two values, instead of removing the first0xfound anywhere in each value. -
#686
93361ecThanks @jxom! - Improved performance and memory use ofBlobs.from,Blobs.to,AbiParameters.decode,Bytes.toBigInt,TypedDatahashing (type hashes are now cached),Base58encoding and decoding,Hex.validateandBytes.validate(which no longer throw and catch internally), and concurrentVirtualMaster.mineSaltAsyncworker pool setup. -
#689
03aeea3Thanks @jxom! - FixedRpcTransport.HttpErrorto show a string request body as is instead of JSON-encoding it a second time. -
#689
03aeea3Thanks @jxom! - FixedTransaction.fromRpc,TransactionReceipt.fromRpc(including its frame receipts and theox/tempovariant) andFrameReceipt.fromRpcto map only known types and statuses, so that values such asconstructor,toStringor__proto__no longer resolve toObject.prototypemembers. -
#689
03aeea3Thanks @jxom! - FixedRpcTransport.fromHttpto reject withPromise.TimeoutErrorwhen the timeout elapses even if a customfetchFnignores the abort signal. -
#681
9602044Thanks @bdchatham! - FixedZoneId.fromChainIdfor zones of Tempo chains other than mainnet and Moderato, whose chain IDs carry the source chain ID in the high 32 bits and the zone ID in the low 32 bits.