Skip to content

Commit

Permalink
fix CR
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed May 28, 2024
1 parent cb60b64 commit 18e704e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assembly/std/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ export class Address implements Serializable {
return !(this == address);
}

/**
* Checks if the address is valid.
*
* @returns `true` if the address is valid, `false` otherwise.
*/
isValid(): bool {
return validateAddress(this._value);
}
Expand All @@ -126,9 +131,6 @@ export class Address implements Serializable {
* @param address - The address to check.
*
* @returns `true` if the address is a smart contract, `false` otherwise.
*
* @throws
* If no bytecode is found at the address.
*/
@inline
isSmartContract(): bool {
Expand Down

0 comments on commit 18e704e

Please sign in to comment.