Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Mar 18, 2024
1 parent 8d4e4fa commit c99383a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ testaccount=test-keys-${timestamp}.testnet
# Can create an account with a given public key
./bin/near add-key $testaccount "78MziB9aTNsu19MHHVrfWy762S5mAqXgCB6Vgvrv9uGV"

# Add a function call key
./bin/near add-key $testaccount "ed25519:DReZmNmnGhpsYcCFFeYgPsJ9YCm9xH16GGujCPe3KQEq" --contractId multichain-testnet-2.testnet --allowance 1

RESULT=$(./bin/near list-keys $testaccount)
EXPECTED=".*78MziB9aTNsu19MHHVrfWy762S5mAqXgCB6Vgvrv9uGV.*"
if [[ ! "$RESULT" =~ $EXPECTED ]]; then
Expand Down

0 comments on commit c99383a

Please sign in to comment.