UNPKG
@getclave/permissionless
Version:
latest (0.4.3)
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.39
A utility library for working with ERC-4337
docs.pimlico.io/permissionless
@getclave/permissionless
/
_esm
/
utils
/
isSmartAccountDeployed.js
8 lines
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ getCode }
from
"viem/actions"
;
export
const
isSmartAccountDeployed
=
async
(
client, address
) => {
const
contractCode =
await
getCode
(client, {
address
: address });
return
Boolean
(contractCode); };
//# sourceMappingURL=isSmartAccountDeployed.js.map