mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
9 lines
267 B
TypeScript
9 lines
267 B
TypeScript
import type { AddressLike } from "ethers";
|
|
|
|
export async function addressLikeToString(address: AddressLike): Promise<string> {
|
|
address = await address
|
|
if (typeof address !== 'string') {
|
|
address = await address.getAddress()
|
|
}
|
|
return address.toLowerCase()
|
|
} |