File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { Attribute } from '../../model/generated/_attribute'
18
18
import { Interaction } from '../../model'
19
19
import { SetMetadata } from '../nfts/types'
20
20
import { COLLECTION_OFFER } from '../../environment'
21
+ import { type Attribute as HyperAttribute , attributeFrom as hyperAttributeFrom } from '@kodadot1/hyperdata'
21
22
22
23
export type BaseCall = {
23
24
caller : string
@@ -99,12 +100,12 @@ export function eventFrom<T>(
99
100
}
100
101
}
101
102
102
- export function attributeFrom ( attribute : MetadataAttribute ) : Attribute {
103
+ export function attributeFrom ( attribute : HyperAttribute ) : Attribute {
103
104
return new Attribute (
104
105
{ } ,
105
106
{
106
- display : attribute . display_type ? String ( attribute . display_type ) : null ,
107
- trait : String ( attribute . trait_type ) ,
107
+ display : attribute . display ? String ( attribute . display ) : null ,
108
+ trait : attribute . trait ? String ( attribute . trait ) : null ,
108
109
value : String ( attribute . value ) ,
109
110
}
110
111
)
You can’t perform that action at this time.
0 commit comments