Skip to content

Commit

Permalink
fix method import from the pypeerassets
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Jul 18, 2018
1 parent ac297c9 commit 7013236
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pacli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import fire
import random
import pypeerassets as pa
from pypeerassets.pautils import amount_to_exponent, exponent_to_amount
from pypeerassets.pautils import (amount_to_exponent,
exponent_to_amount,
parse_card_transfer_metainfo
)
from pypeerassets.transactions import sign_transaction
from pacli.provider import provider
from pacli.config import Settings
Expand Down Expand Up @@ -318,8 +321,8 @@ def decode(self, hex: str) -> dict:

script = NulldataScript.unhexlify(hex).decompile().split(' ')[1]

return pa.parse_card_transfer_metainfo(bytes.fromhex(script),
Settings.deck_version)
return parse_card_transfer_metainfo(bytes.fromhex(script),
Settings.deck_version)

@classmethod
def simulate_issue(self, deckid: str=None, ncards: int=10,
Expand Down

0 comments on commit 7013236

Please sign in to comment.