Skip to content

Commit d75d1d5

Browse files
authored
Merge pull request #472 from permaweb/feat/m3
Feat/m3
2 parents 45b1975 + 1e67611 commit d75d1d5

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test-all": "yarn workspaces --parallel run test"
2323
},
2424
"dependencies": {
25-
"@permaweb/aoconnect": "^0.0.85",
25+
"@permaweb/aoconnect": "^0.0.89",
2626
"arweave": "^1.15.1",
2727
"chalk": "^5.3.0",
2828
"figlet": "^1.7.0",

src/services/mainnet.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,17 @@ export function sendMessageMainnet({ processId, wallet, tags, data }, spinner) {
6464
path: `/${processId}[email protected]/push/[email protected]`,
6565
method: 'POST',
6666
...tags.filter(t => t.name !== 'device').reduce((a, t) => assoc(t.name, t.value, a), {}),
67-
data: data,
6867
'data-protocol': 'ao',
6968
variant: 'ao.N.1',
7069
target: processId,
7170
"accept-bundle": "true",
7271
// "accept-codec": "[email protected]",
73-
"signingFormat": "ANS-104"
72+
"signing-format": "ANS-104"
73+
}
74+
// set data if needed
75+
if (data) {
76+
params.data = data
7477
}
75-
7678
return of(params)
7779
.chain(submitRequest)
7880
.map(prop('body'))
@@ -93,7 +95,8 @@ const setScheduler = fromPromise(async function (ctx) {
9395
.then(r => r.text())
9496
}
9597
ctx['scheduler'] = scheduler
96-
ctx['scheduler-location'] = scheduler
98+
// should no longer need scheduler-location
99+
// ctx['scheduler-location'] = scheduler
97100

98101
return ctx
99102

@@ -152,7 +155,7 @@ export function spawnProcessMainnet({ wallet, src, tags, data, isHyper }) {
152155
'aos-version': pkg.version,
153156
'accept-bundle': 'true',
154157
'codec-device': '[email protected]',
155-
'signingFormat': 'ANS-104'
158+
'signing-format': 'ANS-104'
156159
}
157160
if (data) {
158161
params.data = data

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,10 @@
835835
ramda "^0.30.0"
836836
zod "^3.23.5"
837837

838-
"@permaweb/aoconnect@^0.0.85":
839-
version "0.0.85"
840-
resolved "https://registry.yarnpkg.com/@permaweb/aoconnect/-/aoconnect-0.0.85.tgz#3e8685d39ec1df91ff68b619ecd3a75168c6b6b0"
841-
integrity sha512-lPfDLDaQyOY1oupxkw9B9ZslKw1ENASEdzComoMc2RZ7DejBx2OdHzU+fmZO1ZEQ5zQSm82/wgRVBd/1l6092g==
838+
"@permaweb/aoconnect@^0.0.89":
839+
version "0.0.89"
840+
resolved "https://registry.yarnpkg.com/@permaweb/aoconnect/-/aoconnect-0.0.89.tgz#10f984e39675b60196f57887dc7afdea22594af9"
841+
integrity sha512-Wphud6V+KfQLn+siiWij/ms1TpRJ7CWA/rt01Jk+QKbQP5kW3IcncwmfNTFygoCdAQPterD6s5SHr/hNLlFCUQ==
842842
dependencies:
843843
"@dha-team/arbundles" "1.0.3"
844844
"@permaweb/ao-scheduler-utils" "~0.0.25"

0 commit comments

Comments
 (0)