We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 795a7d2 commit 856a188Copy full SHA for 856a188
src/api/store.js
@@ -9,7 +9,7 @@ export async function submit(
9
file_hash = null, fileobject = null,
10
storage_engine = 'storage',
11
chain = null, channel = null, api_server = DEFAULT_SERVER,
12
- account = null } = {}) {
+ account = null, extra_fields = {} } = {}) {
13
14
if ((file_hash === null) && (fileobject === null)) {
15
throw "You must either provide a hash and an engine or a fileobject"
@@ -38,7 +38,8 @@ export async function submit(
38
'address': address,
39
'item_type': storage_engine,
40
'item_hash': file_hash,
41
- 'time': Date.now() / 1000
+ 'time': Date.now() / 1000,
42
+ ...extra_fields
43
}
44
let message = {
45
'chain': chain,
0 commit comments