Skip to content

Commit d50e1b3

Browse files
add callback to requestorder and add useCallback to requester secret
1 parent cda6190 commit d50e1b3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/config/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ export const DEFAULT_IPFS_GATEWAY = 'https://ipfs-gateway.v8-bellecour.iex.ec';
1111
export const WHITELIST_SMART_CONTRACT_ADDRESS =
1212
'0x781482C39CcE25546583EaC4957Fb7Bf04C277D2';
1313
export const ANY_DATASET_ADDRESS = 'any';
14+
export const CALLBACK_WEB3MAIL = '0x5f936db7ad6d29371808e42a87015595d90509ba';

src/web3mail/sendEmail.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Buffer } from 'buffer';
22
import {
3+
CALLBACK_WEB3MAIL,
34
DEFAULT_CONTENT_TYPE,
45
MAX_DESIRED_APP_ORDER_PRICE,
56
MAX_DESIRED_DATA_ORDER_PRICE,
@@ -269,6 +270,7 @@ export const sendEmail = async ({
269270
contentType: vContentType,
270271
senderName: vSenderName,
271272
emailContentEncryptionKey,
273+
useCallback: true
272274
})
273275
);
274276

@@ -281,6 +283,7 @@ export const sendEmail = async ({
281283
workerpoolmaxprice: workerpoolorder.workerpoolprice,
282284
tag: ['tee', 'scone'],
283285
workerpool: vWorkerpoolAddressOrEns,
286+
callback: CALLBACK_WEB3MAIL,
284287
params: {
285288
iexec_secrets: {
286289
1: requesterSecretId,

0 commit comments

Comments
 (0)