Refactor from crypto.SigType to types.KeyType

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera
2020-10-12 00:07:53 +02:00
parent 6a232e7214
commit 2b21fdef33
31 changed files with 173 additions and 133 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
#!/bin/bash
# vim: set expandtab ts=2 sw=2:
token=$(lotus auth create-token --perm admin)
_lotus_token=$(./lotus auth create-token --perm admin)
runAPI() {
curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.'"$1"'","params":'"${2:-null}"'}' \
'http://127.0.0.1:1234/rpc/v0?token='"$token"
'http://127.0.0.1:1234/rpc/v0?token='"$_lotus_token"
}