Skip to content

Commit

Permalink
Merge pull request #36 from ltonetwork/Renaming-Pyclto-to-LTO
Browse files Browse the repository at this point in the history
Update broadcast.py
  • Loading branch information
AndreaScorza authored Jan 28, 2022
2 parents 4ccbe37 + 9a741b5 commit cf9c080
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package_dir =
packages = find:
python_requires = >=3.6
install_requires =
lto==1.0.*
lto==1.1.*
argparse
configparser
pathlib
Expand Down
2 changes: 1 addition & 1 deletion src/lto_cli/commands/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lto.accounts.account_factory_ed25519 import AccountFactoryED25519 as AccountFactory
from lto.accounts.ed25519.account_factory_ed25519 import AccountFactoryED25519 as AccountFactory
from lto_cli import config
from lto_cli import handle_default as handle

Expand Down
6 changes: 3 additions & 3 deletions src/lto_cli/commands/broadcast.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from lto import PyCLTO
from lto.transactions import from_data
from lto_cli import handle_default as handle
import sys


def func(name_space, parser):
chain_id = handle.check(name_space.network[0], parser) if name_space.network else 'L'
Expand All @@ -11,7 +11,7 @@ def func(name_space, parser):
if not tx_json:
parser.error("Expected transaction as input, type 'lto broadcast --help' for instructions")

transaction = PyCLTO().from_data(json.loads(tx_json))
transaction = from_data(json.loads(tx_json))

if vars(name_space)['unsigned'] is False:
if not transaction.proofs:
Expand Down
2 changes: 1 addition & 1 deletion src/lto_cli/handle_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
import os

from lto.accounts.account_factory_ed25519 import AccountFactoryED25519 as AccountFactory
from lto.accounts.ed25519.account_factory_ed25519 import AccountFactoryED25519 as AccountFactory
from lto_cli import config as Config
from lto.public_node import PublicNode

Expand Down

0 comments on commit cf9c080

Please sign in to comment.