File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,18 @@ describe("Accounts", () => {
122122 } ) ;
123123
124124 it ( "Deploys first unfunded account from first funded account" , async ( ) => {
125- const tx_acc = await randomAccountManagers [ 0 ] . deploy ( { fee : { paymentMethod : sponsoredPaymentMethod } , deployWallet : ownerWallet } ) . wait ( ) ;
125+ const receipt = await randomAccountManagers [ 0 ]
126+ . deploy ( { fee : { paymentMethod : sponsoredPaymentMethod } , deployWallet : ownerWallet } )
127+ . wait ( ) ;
128+
129+ expect ( receipt ) . toEqual (
130+ expect . objectContaining ( {
131+ status : TxStatus . SUCCESS ,
132+ } ) ,
133+ ) ;
134+
135+ const deployedWallet = await randomAccountManagers [ 0 ] . getWallet ( ) ;
136+ expect ( deployedWallet . getAddress ( ) ) . toEqual ( randomAccountManagers [ 0 ] . getAddress ( ) ) ;
126137 } ) ;
127138
128139 it ( "Sponsored contract deployment" , async ( ) => {
You can’t perform that action at this time.
0 commit comments