Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

230 test wallet was removed #231

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions cmd/wallet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func run(action int, cfg fileoperations.Config) error {
if err := h.SaveToPem(&w); err != nil {
return err
}
printWalletPublicAddress(w.Address())
return nil
case actionFromGobToPem:
h := fileoperations.New(cfg, aeswrapper.New())
Expand All @@ -171,6 +172,7 @@ func run(action int, cfg fileoperations.Config) error {
if err := h.SaveToPem(&w); err != nil {
return err
}
printWalletPublicAddress(w.Address())
return nil

case actionFromPemToGob:
Expand All @@ -182,13 +184,18 @@ func run(action int, cfg fileoperations.Config) error {
if err := h.SaveWallet(&w); err != nil {
return err
}
printWalletPublicAddress(w.Address())
return nil
default:
return errors.New("unimplemented action")

}
}

func printWalletPublicAddress(address string) {
pterm.Info.Printf("Wallet public address is [ %s ]\n", address)
}

func printSuccess() {
pterm.Info.Println("----------")
pterm.Info.Println(" SUCCESS !")
Expand Down
2 changes: 1 addition & 1 deletion docker_postgres_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ INSERT INTO tokens (token, valid, expiration_date) VALUES ('e3b0c44298fc1c149afb
INSERT INTO tokens (token, valid, expiration_date) VALUES ('7147a8f255f49cb7693dcd19b6b46e139680d48a03e0a075ea237deb7e6bac11', true, 9223372036854775807);
INSERT INTO tokens (token, valid, expiration_date) VALUES ('11b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b543', true, 9223372036854775807);

INSERT INTO addresses (public_key, access_level) VALUES ('1AGb92ohiRtHFzrsVbMswxwARe5KeLBYkUzVgq9fTgUsAnmpyh', 'trusted');
INSERT INTO addresses (public_key, access_level) VALUES ('1QtxpcaQbZg7qhdZr7EUoeQVr585s8sD3UCyZMXJSKawUpM5ze', 'trusted');
2 changes: 2 additions & 0 deletions test_wallet
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
���Ⱥ���jp��裖]�ݼVJ���B��#��ǩ^��-Q�$6�^^�Gyj��eq|!)��LCv�l�P�z��Q�n��=ZWd6������=�))�/V<�[�h}6� DHV��i��p솶�Bz����*ԍۂ�dӻ���
��-<Gߑ�Ƶ���b��I��f �&���R��"F^