@@ -7,7 +7,7 @@ import { AltVM } from '@hyperlane-xyz/utils';
77import { AleoSigner } from '../clients/signer.js' ;
88import { AleoReceipt , AleoTransaction } from '../utils/types.js' ;
99
10- describe ( '2. cosmos sdk core e2e tests' , async function ( ) {
10+ describe ( '2. aleo sdk core e2e tests' , async function ( ) {
1111 this . timeout ( 300_000 ) ;
1212
1313 let signer : AltVM . ISigner < AleoTransaction , AleoReceipt > ;
@@ -51,24 +51,6 @@ describe('2. cosmos sdk core e2e tests', async function () {
5151 mailboxAddress = mailbox . address ;
5252 } ) ;
5353
54- step ( 'set mailbox owner' , async ( ) => {
55- // ARRANGE
56- let mailbox = await signer . getMailbox ( { mailboxAddress } ) ;
57- expect ( mailbox . owner ) . to . equal ( signer . getSignerAddress ( ) ) ;
58-
59- const newOwner = new Account ( ) . address ( ) . to_string ( ) ;
60-
61- // ACT
62- await signer . setMailboxOwner ( {
63- mailboxAddress,
64- newOwner,
65- } ) ;
66-
67- // ASSERT
68- mailbox = await signer . getMailbox ( { mailboxAddress } ) ;
69- expect ( mailbox . owner ) . to . equal ( newOwner ) ;
70- } ) ;
71-
7254 step ( 'set mailbox default ism' , async ( ) => {
7355 // ARRANGE
7456 const { ismAddress } = await signer . createNoopIsm ( { } ) ;
@@ -126,4 +108,22 @@ describe('2. cosmos sdk core e2e tests', async function () {
126108 mailbox = await signer . getMailbox ( { mailboxAddress } ) ;
127109 expect ( mailbox . requiredHook ) . to . equal ( hookAddress ) ;
128110 } ) ;
111+
112+ step ( 'set mailbox owner' , async ( ) => {
113+ // ARRANGE
114+ let mailbox = await signer . getMailbox ( { mailboxAddress } ) ;
115+ expect ( mailbox . owner ) . to . equal ( signer . getSignerAddress ( ) ) ;
116+
117+ const newOwner = new Account ( ) . address ( ) . to_string ( ) ;
118+
119+ // ACT
120+ await signer . setMailboxOwner ( {
121+ mailboxAddress,
122+ newOwner,
123+ } ) ;
124+
125+ // ASSERT
126+ mailbox = await signer . getMailbox ( { mailboxAddress } ) ;
127+ expect ( mailbox . owner ) . to . equal ( newOwner ) ;
128+ } ) ;
129129} ) ;
0 commit comments