Skip to content

ox@0.14.64

Choose a tag to compare

@github-actions github-actions released this 09 Nov 02:17
· 225 commits to main since this release
4acc182

Patch Changes

  • #603 0f76422 Thanks @jxom! - Fixed AbiError.decode to resolve overloaded errors by the selector in data instead of always decoding with the first matching overload.

  • #601 354db45 Thanks @jxom! - Fixed AbiEvent.assertArgs not matching integer arguments given as a number against values decoded as bigint, or as a bigint against small integers decoded as number.

  • #590 ed0af24 Thanks @jxom! - Fixed Base32.toBytes and Base32.toHex accepting non-canonical input (non-zero trailing bits or an impossible length) by throwing Base32.InvalidPaddingError.

  • #581 0dcd096 Thanks @jxom! - Fixed Cbor.decode to decode a __proto__ map key as an own property instead of replacing the prototype of the decoded object.

  • #592 867e641 Thanks @jxom! - Fixed Attribution.fromData to return undefined when a codes or CBOR length field claims more bytes than precede it.

  • #585 9bc4970 Thanks @jxom! - Fixed Hex.toBigInt and Hex.toNumber throwing on odd-length hex with signed: true, and Hex.fromNumber returning 0x0 for a negative number with signed: true and no size.

  • #597 0253792 Thanks @jxom! - Fixed Rlp.toBytes and Rlp.toHex to reject non-canonical encodings (a single byte below 0x80 with a length prefix, or a long-form or zero-padded length) with Rlp.NonCanonicalError.

  • #601 354db45 Thanks @jxom! - Fixed Bytes.fromHex and Hex.toBytes shifting the bytes of odd-length hex values when size was specified.

  • #601 354db45 Thanks @jxom! - Fixed RpcTransport.fromHttp dropping fetchOptions.headers supplied as a Headers instance or tuple array, and sending both the default and the caller's Content-Type when only their casing differed.

  • #601 354db45 Thanks @jxom! - Fixed Siwe.validateMessage accepting a message with a nonce shorter than 8 alphanumeric characters or a version other than 1, which EIP-4361 does not allow.

  • #601 354db45 Thanks @jxom! - Fixed AbiItem.fromAbi throwing AbiItem.AmbiguityError for string and bytes overloads when the argument is a plain string; only hex strings and Uint8Array values now match bytes.

  • #583 e415932 Thanks @jxom! - Fixed Tick.fromPrice accepting negative prices between -1 and 0 as their positive counterparts instead of throwing Tick.PriceOutOfBoundsError.

  • #601 354db45 Thanks @jxom! - Fixed TypedData.assert and TypedData.validate (and so TypedData.getSignPayload and TypedData.serialize) rejecting struct names that contain :, such as HyperliquidTransaction:SendAsset.

  • #579 90b00c7 Thanks @jxom! - Added a {"type":"module"} marker to _types/ so declaration files resolve as ESM under TypeScript node16 (and nodenext before TypeScript 5.8); CommonJS consumers on node16 should switch to nodenext or bundler resolution.

  • #594 4208467 Thanks @jxom! - Fixed UserOperation.toPacked and UserOperation.toInitCode to keep the padded EIP-7702 0x7702 initCode marker expected by EntryPoint 0.8, using the delegate address only with the new forHash option.

  • #599 942c3a3 Thanks @jxom! - Fixed AbiFunction.decodeData returning undefined when a function name has a zero-input overload and the calldata targets another overload, by keeping the other overloads on items fromAbi resolves without args.