Stateless cryptocurrency API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cryptocurrency_test.go 454B

123456789101112131415161718192021222324
  1. // Copyright 2020 Mikhail Klementev. All rights reserved.
  2. // Use of this source code is governed by a MIT license
  3. // that can be found in the LICENSE file.
  4. package cryptocurrency
  5. import "testing"
  6. func TestGenWalletAPI(t *testing.T) {
  7. for _, cc := range Cryptocurrencies {
  8. seed, address, err := cc.GenWallet()
  9. if err != nil {
  10. t.Fatal(err)
  11. }
  12. if seed == "" {
  13. t.Fatal("no seed")
  14. }
  15. if address == "" {
  16. t.Fatal("no address")
  17. }
  18. }
  19. }