Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Fix of issue #5 #47

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/dune/dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,17 +271,17 @@ def create_key(self):
return stdout

def export_wallet(self):
self._docker.execute_cmd(['mkdir', '/home/www-data/_wallet'])
self._docker.execute_cmd(['cp', '-R', '/root/eosio-wallet', '/home/www-data/_wallet/eosio-wallet'])
self._docker.execute_cmd(['cp', '-R', '/home/www-data/.wallet.pw', '/home/www-data/_wallet/.wallet.pw'])
self._docker.tar_dir("wallet", "/home/www-data/_wallet")
self._docker.cp_to_host("/home/www-data/wallet.tgz", "wallet.tgz")
self._docker.execute_cmd(['mkdir', '_wallet'])
self._docker.execute_cmd(['cp', '-R', '/root/eosio-wallet', '_wallet/eosio-wallet'])
self._docker.execute_cmd(['cp', '-R', '.wallet.pw', '_wallet/.wallet.pw'])
self._docker.tar_dir("wallet", "_wallet")
self._docker.cp_to_host("/app/wallet.tgz", "wallet.tgz")

def import_wallet(self, d):
self._docker.cp_from_host(d, "/home/www-data/wallet.tgz")
self._docker.untar("/home/www-data/wallet.tgz")
self._docker.execute_cmd(["mv", "/home/www-data/_wallet/.wallet.pw", "/app"])
self._docker.execute_cmd(["mv", "/home/www-data/_wallet", "/root"])
self._docker.cp_from_host(d, "wallet.tgz")
self._docker.untar("wallet.tgz")
self._docker.execute_cmd(["mv", "_wallet/.wallet.pw", "/app"])
self._docker.execute_cmd(["mv", "_wallet", "/root"])

# TODO cleos has a bug displaying keys for K1 so, we need the public key if providing the private key
# Remove that requirement when we fix cleos.
Expand Down