From 71ec492347e59823c3a8e967b985de7e03b52705 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Fri, 15 Oct 2021 14:26:28 +0300 Subject: [PATCH] Refactors to use new metadata pointers. --- cic/meta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cic/meta.py b/cic/meta.py index f50bf4c..adaef00 100644 --- a/cic/meta.py +++ b/cic/meta.py @@ -56,7 +56,7 @@ class Meta(Data): def reference(self, token_address): token_address_bytes = bytes.fromhex(strip_0x(token_address)) - return generate_metadata_pointer(token_address_bytes, MetadataPointer.TOKEN) + return generate_metadata_pointer(token_address_bytes, MetadataPointer.TOKEN_META) def asdict(self): @@ -91,6 +91,6 @@ class Meta(Data): class MetadataWriter(OutputWriter): def write(self, k, v): - rq = MetadataRequestsHandler(MetadataPointer.TOKEN, bytes.fromhex(k)) + rq = MetadataRequestsHandler(MetadataPointer.TOKEN_META, bytes.fromhex(k)) return rq.create(json.loads(v.decode('utf-8')))