-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6401056
commit 9329587
Showing
2 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package wallet_handler_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/JackalLabs/jackalgo/handlers/wallet_handler" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestNewWallet(t *testing.T) { | ||
r := require.New(t) | ||
|
||
seed := "slim odor fiscal swallow piece tide naive river inform shell dune crunch canyon ten time universe orchard roast horn ritual siren cactus upon forum" | ||
|
||
wallet, err := wallet_handler.NewWalletHandler(seed, "https://testnet.jackalprotocol.com:443", "lupulella-2") | ||
r.NoError(err) | ||
|
||
address := "jkl15cwg7teruwldgelxdg96g4cqxhsar7ye3zhv9f" | ||
|
||
r.Equal(wallet.GetAddress(), address) | ||
} |