Skip to content

Commit

Permalink
fix: stale selector comments (#11311)
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan authored Jan 17, 2025
1 parent 5eb3e8f commit 629bd64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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

0 comments on commit 629bd64

Please sign in to comment.