diff --git a/packages/types/src/Metadata/v0/Storage.ts b/packages/types/src/Metadata/v0/Storage.ts index d3cdfc094a..cb8fc86ae8 100644 --- a/packages/types/src/Metadata/v0/Storage.ts +++ b/packages/types/src/Metadata/v0/Storage.ts @@ -115,9 +115,15 @@ export class StorageFunctionType extends EnumType { * @description Returns the string representation of the value */ toString (): string { - return this.isMap - ? this.asMap.value.toString() - : this.asType.toString(); + if (this.isMap) { + if (this.asMap.isLinked) { + return `(${this.asMap.value.toString()}, Linkage<${this.asMap.key.toString()}>)`; + } + + return this.asMap.value.toString(); + } + + return this.asType.toString(); } }