Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
Signed-off-by: bennett <[email protected]>
  • Loading branch information
bmzig committed Feb 28, 2025
1 parent 3ce3868 commit de8bbe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/BundleDataClient/utils/SuperstructUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ const BigNumberType = coerce(instance(BigNumber), union([string(), number()]), (

const AddressType = coerce(instance(Address), string(), (value) => {
try {
// Attempt to convert the string to a BigNumber
// Attempt to convert the string to an Address

Check warning on line 36 in src/clients/BundleDataClient/utils/SuperstructUtils.ts

View workflow job for this annotation

GitHub Actions / Lint

Delete `·`
return Address.from(value);
} catch (error) {
// In case of any error during conversion, return the original value
// This will lead to a validation error, as the resulting value won't match the expected BigNumber type
// This will lead to a validation error, as the resulting value won't match the expected Address type
return value;
}
});
Expand Down

0 comments on commit de8bbe2

Please sign in to comment.