@privy-io/js-sdk-core
Version:
Vanilla JS client for the Privy Auth API
2 lines (1 loc) • 313 B
JavaScript
;var e=require("./getAllUserEmbeddedEthereumWallets.js");require("./embedded-wallets.js");exports.shouldCreateEmbeddedEthWallet=(l,t)=>!("off"===t||e.getAllUserEmbeddedEthereumWallets(l).length>0||l.linked_accounts.filter((e=>"wallet"===e.type&&"ethereum"===e.chain_type)).length>0&&"all-users"!==t);