def create_token_metadata(self, token: TokenTransaction): token_metadata = TokenMetadata.create( token_txhash=token.txhash, transfer_token_txhashes=[token.txhash]) self._db.put_raw(self.state_code + b'token_' + token.txhash, token_metadata.to_json().encode()) self.add_token_txhash(token.txhash)
def create_token_metadata(self, token: TokenTransaction): token_metadata = TokenMetadata.create( token_txhash=token.txhash, transfer_token_txhashes=[token.txhash]) self._db.put_raw(b'token_' + token.txhash, token_metadata.serialize())
def create_token_metadata(self, token: TokenTransaction): token_metadata = TokenMetadata.create(token_txhash=token.txhash, transfer_token_txhashes=[token.txhash]) self._db.put_raw(b'token_' + token.txhash, token_metadata.to_json().encode())