Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions yarn-project/foundation/src/abi/event_selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ export class EventSelector extends Selector {

/**
* Create a Selector instance from a hex-encoded string.
* The input 'address' should be prefixed with '0x' or not, and have exactly 64 hex characters.
* Throws an error if the input length is invalid or address value is out of range.
*
* @param selector - The hex-encoded string representing the Selector.
* @returns An Selector instance.
* @throws If the selector length is invalid.
*/
static fromString(selector: string) {
const buf = fromHex(selector);
Expand Down
3 changes: 1 addition & 2 deletions yarn-project/foundation/src/abi/function_selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ export class FunctionSelector extends Selector {

/**
* Create a Selector instance from a hex-encoded string.
* The input 'address' should be prefixed with '0x' or not, and have exactly 64 hex characters.
* Throws an error if the input length is invalid or address value is out of range.
*
* @param selector - The hex-encoded string representing the Selector.
* @returns An Selector instance.
* @throws If the selector length is invalid.
*/
static fromString(selector: string) {
const buf = fromHex(selector);
Expand Down
Loading