-
Notifications
You must be signed in to change notification settings - Fork 94
add delete-key command to delete access key #383
Conversation
@mikedotexe why is this flag |
@bowenwang1996 going to wait for tests to pass for posterity but then I'll merge and check with Vlad about cutting a release. If I don't hear back from him I'll cut one |
you mean as opposed to just UPDATE: good point, Bowen. pushed fix so it's like that. |
index.js
Outdated
@@ -199,6 +199,16 @@ exports.sendMoney = async function (options) { | |||
await eventtracking.track(eventtracking.EVENT_ID_SEND_TOKENS_END, { node: options.nodeUrl, success: true }); | |||
}; | |||
|
|||
exports.deleteAccessKey = async function (options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'd prefer we add new commands as separate self-contained files (i.e. in commands/
folder). We should extract existing commands too eventually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, pushed up that change, Vlad
Delete's an access key.
Pull down branch and you can use this command
Command:
./bin/near delete-key 2rLDDvyk8wdpq4TZ3k2xmCxhykq431eNKQ7Mfg31nT4q --accountId mike.testnet
The access key can be copied from Wallet. Tested on full access and authorized apps keys.