@@ -10,7 +10,7 @@ import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './to
1010
1111describe ( 'v0ToLatest' , ( ) : void => {
1212 const registry = new TypeRegistry ( ) ;
13- const contract = registry . createType ( 'ContractMetadata' , { V0 : abis . ink_v0_erc20 } ) ;
13+ const contract = registry . createType ( 'ContractMetadata' , { V0 : abis [ ' ink_v0_erc20' ] } ) ;
1414 const latest = v0ToLatest ( registry , contract . asV0 ) ;
1515
1616 it ( 'has the correct constructors' , ( ) : void => {
@@ -52,7 +52,7 @@ describe('v0ToLatest', (): void => {
5252
5353describe ( 'v1ToLatest' , ( ) : void => {
5454 const registry = new TypeRegistry ( ) ;
55- const contract = registry . createType ( 'ContractMetadata' , { V1 : abis . ink_v1_flipper . V1 } ) ;
55+ const contract = registry . createType ( 'ContractMetadata' , { V1 : abis [ ' ink_v1_flipper' ] [ 'V1' ] } ) ;
5656 const latest = v1ToLatest ( registry , contract . asV1 ) ;
5757
5858 it ( 'has the correct constructors' , ( ) : void => {
@@ -68,7 +68,7 @@ describe('v1ToLatest', (): void => {
6868 } ) ;
6969
7070 it ( 'has the correct messages with namespaced method name' , ( ) : void => {
71- const contract = registry . createType ( 'ContractMetadata' , { V1 : abis . ink_v1_psp22 . V1 } ) ;
71+ const contract = registry . createType ( 'ContractMetadata' , { V1 : abis [ ' ink_v1_psp22' ] [ 'V1' ] } ) ;
7272 const latest = v1ToLatest ( registry , contract . asV1 ) ;
7373
7474 expect (
@@ -87,7 +87,7 @@ describe('v1ToLatest', (): void => {
8787
8888describe ( 'v2ToLatest' , ( ) : void => {
8989 const registry = new TypeRegistry ( ) ;
90- const contract = registry . createType ( 'ContractMetadata' , { V2 : abis . ink_v2_flipper . V2 } ) ;
90+ const contract = registry . createType ( 'ContractMetadata' , { V2 : abis [ ' ink_v2_flipper' ] [ 'V2' ] } ) ;
9191 const latest = v2ToLatest ( registry , contract . asV2 ) ;
9292
9393 it ( 'has the correct constructor flag' , ( ) : void => {
@@ -99,7 +99,7 @@ describe('v2ToLatest', (): void => {
9999
100100describe ( 'v3ToLatest' , ( ) : void => {
101101 const registry = new TypeRegistry ( ) ;
102- const contract = registry . createType ( 'ContractMetadata' , { V3 : abis . ink_v3_flipper . V3 } ) ;
102+ const contract = registry . createType ( 'ContractMetadata' , { V3 : abis [ ' ink_v3_flipper' ] [ 'V3' ] } ) ;
103103 const latest = v3ToLatest ( registry , contract . asV3 ) ;
104104
105105 it ( 'has the correct constructor flags' , ( ) : void => {
@@ -112,7 +112,7 @@ describe('v3ToLatest', (): void => {
112112 } ) ;
113113
114114 it ( 'has the correct messages' , ( ) : void => {
115- const contract = registry . createType ( 'ContractMetadata' , { V3 : abis . ink_v3_traitErc20 . V3 } ) ;
115+ const contract = registry . createType ( 'ContractMetadata' , { V3 : abis [ ' ink_v3_traitErc20' ] [ 'V3' ] } ) ;
116116 const latest = v3ToLatest ( registry , contract . asV3 ) ;
117117
118118 expect (
@@ -125,7 +125,7 @@ describe('v3ToLatest', (): void => {
125125
126126describe ( 'v4ToLatest' , ( ) : void => {
127127 const registry = new TypeRegistry ( ) ;
128- const contract = registry . createType ( 'ContractMetadata' , { V4 : abis . ink_v4_flipperContract } ) ;
128+ const contract = registry . createType ( 'ContractMetadata' , { V4 : abis [ ' ink_v4_flipperContract' ] } ) ;
129129 const latest = v4ToLatest ( registry , contract . asV4 ) ;
130130
131131 it ( 'has the correct constructor flags' , ( ) : void => {
0 commit comments