Skip to content

Commit f4465bf

Browse files
feat: add isEmailValid in result
1 parent f9faa51 commit f4465bf

File tree

2 files changed

+519
-507
lines changed

2 files changed

+519
-507
lines changed

dapp/src/executeTask.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ async function start() {
165165
results: results.map((r) => ({
166166
index: r.index,
167167
protectedData: r.protectedData,
168-
// isEmailValid: r.isEmailValid,
169168
success: r.success,
169+
isEmailValid: r.isEmailValid,
170170
error: r.error,
171171
})),
172172
};
@@ -179,7 +179,8 @@ async function start() {
179179
appDeveloperSecret,
180180
requesterSecret,
181181
});
182-
182+
// set result json
183+
result = { protectedData, success, isEmailValid, error };
183184
// Add callback data for single processing if useCallback is enabled
184185
if (requesterSecret.useCallback) {
185186
const bool32Bytes = Buffer.alloc(32);
@@ -195,7 +196,6 @@ async function start() {
195196
}
196197
callbackData = `0x${bool32Bytes.toString('hex')}`;
197198
}
198-
result = { protectedData, success, error };
199199
}
200200
} catch (e) {
201201
console.error('Something went wrong:', e.message);

0 commit comments

Comments
 (0)