@@ -9,6 +9,7 @@ import { sepolia } from "../chains/chain-definitions/sepolia.js";
99import { getContract } from "../contract/contract.js" ;
1010import { setContractURI } from "../extensions/common/__generated__/IContractMetadata/write/setContractURI.js" ;
1111import { mintTo } from "../extensions/erc20/write/mintTo.js" ;
12+ import { setApprovalForAll } from "../extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.js" ;
1213import { claimTo } from "../extensions/erc1155/drops/write/claimTo.js" ;
1314import { getAllActiveSigners } from "../extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.js" ;
1415import { sendTransaction } from "../transaction/actions/send-transaction.js" ;
@@ -44,13 +45,13 @@ describe.runIf(
4445 } ) ;
4546 serverWallet = Engine . serverWallet ( {
4647 address : process . env . ENGINE_CLOUD_WALLET_ADDRESS as string ,
47- chain : arbitrumSepolia ,
48+ chain : sepolia ,
4849 client : TEST_CLIENT ,
4950 vaultAccessToken : process . env . VAULT_TOKEN as string ,
5051 } ) ;
5152 } ) ;
5253
53- it . skip ( "should create a server wallet" , async ( ) => {
54+ it ( "should create a server wallet" , async ( ) => {
5455 const serverWallet = await Engine . createServerWallet ( {
5556 client : TEST_CLIENT ,
5657 label : "My Server Wallet" ,
@@ -155,14 +156,14 @@ describe.runIf(
155156
156157 it ( "should send a extension tx" , async ( ) => {
157158 const tokenContract = getContract ( {
158- address : "0x87C52295891f208459F334975a3beE198fE75244 " ,
159+ address : "0x638263e3eAa3917a53630e61B1fBa685308024fa " ,
159160 chain : baseSepolia ,
160161 client : TEST_CLIENT ,
161162 } ) ;
162- const claimTx = mintTo ( {
163- amount : "0.001" ,
163+ const claimTx = setApprovalForAll ( {
164+ approved : true ,
164165 contract : tokenContract ,
165- to : serverWallet . address ,
166+ operator : "0x4b8ceC1Eb227950F0bfd034449B2781e689242A1" ,
166167 } ) ;
167168 const tx = await sendTransaction ( {
168169 account : serverWallet ,
@@ -173,19 +174,21 @@ describe.runIf(
173174
174175 it ( "should enqueue a batch of txs" , async ( ) => {
175176 const tokenContract = getContract ( {
176- address : "0x87C52295891f208459F334975a3beE198fE75244 " ,
177+ address : "0x638263e3eAa3917a53630e61B1fBa685308024fa " ,
177178 chain : baseSepolia ,
178179 client : TEST_CLIENT ,
179180 } ) ;
180- const claimTx1 = mintTo ( {
181- amount : "0.001" ,
181+ const claimTx1 = claimTo ( {
182182 contract : tokenContract ,
183+ quantity : 1n ,
183184 to : serverWallet . address ,
185+ tokenId : 2n ,
184186 } ) ;
185- const claimTx2 = mintTo ( {
186- amount : "0.002" ,
187+ const claimTx2 = claimTo ( {
187188 contract : tokenContract ,
189+ quantity : 1n ,
188190 to : serverWallet . address ,
191+ tokenId : 2n ,
189192 } ) ;
190193 const tx = await serverWallet . enqueueBatchTransaction ( {
191194 transactions : [ claimTx1 , claimTx2 ] ,
0 commit comments