From c99383a1dc5ba16a697b462792559204054c5274 Mon Sep 17 00:00:00 2001 From: gagdiez Date: Mon, 18 Mar 2024 19:47:33 +0100 Subject: [PATCH] chore: add test --- test/test_keys.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_keys.sh b/test/test_keys.sh index 8e8210e1..eb09fbd3 100755 --- a/test/test_keys.sh +++ b/test/test_keys.sh @@ -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