File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
packages/eip-5792-middleware/src/hooks Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -619,18 +619,14 @@ describe('EIP-5792', () => {
619619 ) ;
620620
621621 expect ( result ) . toBeDefined ( ) ;
622- expect ( payload . capabilities ?. auxiliaryFunds ?. requiredAssets ?. length ) . toBe (
623- 1 ,
624- ) ;
625- expect (
626- payload . capabilities ?. auxiliaryFunds ?. requiredAssets ?. [ 0 ] . amount ,
627- ) . toBe ( '0x5' ) ;
628- expect (
629- payload . capabilities ?. auxiliaryFunds ?. requiredAssets ?. [ 0 ] . address ,
630- ) . toBe ( '0x123' ) ;
631- expect (
632- payload . capabilities ?. auxiliaryFunds ?. requiredAssets ?. [ 0 ] . standard ,
633- ) . toBe ( 'erc20' ) ;
622+ const requiredAssets =
623+ payload . capabilities ?. auxiliaryFunds ?. requiredAssets ;
624+ expect ( requiredAssets ) . toHaveLength ( 1 ) ;
625+ expect ( requiredAssets ?. [ 0 ] ) . toMatchObject ( {
626+ amount : '0x5' ,
627+ address : '0x123' ,
628+ standard : 'erc20' ,
629+ } ) ;
634630 } ) ;
635631 } ) ;
636632} ) ;
You can’t perform that action at this time.
0 commit comments