You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: remove near-api-js account object dependency from change functions (#38)
* refactor: remove dependency on near-api-js account and connection objects from change functions
* test: update tests to use new network initialization
* chore: squash
* docs: amend docs to use new initailaization
* docs: update docs to use the new signer object and fix broken links
* build(lint): fix linting errors
* chore: squash
* refactor: convert signer to account because signer is icky
<img alt="GitHub Pre-release Date - Published At" src="https://img.shields.io/github/release-date-pre/NEARBuilders/near-social-js?label=pre-release%20date&logo=github
20
-
">
19
+
<img alt="GitHub Pre-release Date - Published At" src="https://img.shields.io/github/release-date-pre/NEARBuilders/near-social-js?label=pre-release%20date&logo=github">
nonce: BigInt(accessKeys[0].nonce+1), // the nonce to be used for the transaction, must be greater than the access key nonce
114
-
publicKey: accessKeys[0].public_key,
115
-
signer: granter,
116
91
});
117
92
118
93
// ...sign the returned transaction and post to the network
@@ -124,12 +99,12 @@ Accounts can grant write permission to other accounts for a set of keys.
124
99
125
100
:::caution
126
101
127
-
If the grantee account ID or the account ID in each key is not a valid account ID then a [`InvalidAccountIdError`](../../api-reference/errors#invalidaccountiderror) is thrown.
102
+
If the grantee account ID or the account ID in each key is not a valid account ID then a [`InvalidAccountIdError`](../api-reference/errors#invalidaccountiderror) is thrown.
128
103
129
104
:::
130
105
131
106
:::caution
132
107
133
-
If a key does is not owned by the granter, then a [`KeyNotAllowedError`](../../api-reference/errors#keynotallowederror) is thrown.
108
+
If a key does is not owned by the granter, then a [`KeyNotAllowedError`](../api-reference/errors#keynotallowederror) is thrown.
0 commit comments