Function to deploy a smart contract from the connected Abstract Global Wallet.
deployContract
method that can be used to deploy a smart contract from the connected Abstract Global Wallet.
It extends the deployContract function from Viem to include options for
contract deployment on Abstract.
account
from the
AbstractClient to
use the Abstract Global Wallet.abstractTestnet
.create
.'create'
: Deploys the contract using the CREATE
opcode.'create2'
: Deploys the contract using the CREATE2
opcode.'createAccount'
: Deploys a smart contract wallet
using the ContractDeployer’s
createAccount
function.'create2Account'
: Deploys a smart contract wallet
using the ContractDeployer’s
create2Account
function.paymasterInput
field.paymaster
field.Hex
hash of the transaction that deployed the contract.
Use waitForTransactionReceipt to get the transaction receipt from the hash.