export generateCalldata function without unit param

This commit is contained in:
lomonoshka
2023-10-27 15:41:22 +04:00
parent 1fc201a626
commit 92d7e2028e
5 changed files with 64 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
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
}