Skip to content

Commit f66c52a

Browse files
fix(sendEmail): use custom workerpool when provided
1 parent 8aeff30 commit f66c52a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/web3mail/IExecWeb3mail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class IExecWeb3mail {
109109
await isValidProvider(this.iexec);
110110
return sendEmail({
111111
...args,
112-
workerpoolAddressOrEns: this.defaultWorkerpool,
112+
workerpoolAddressOrEns: args.workerpoolAddressOrEns || this.defaultWorkerpool,
113113
iexec: this.iexec,
114114
ipfsNode: this.ipfsNode,
115115
ipfsGateway: this.ipfsGateway,

tests/e2e/fetchUserContacts.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ describe('web3mail.fetchMyContacts()', () => {
7171
'Test that the protected data can be accessed by authorized user',
7272
async () => {
7373
const userWithAccess = Wallet.createRandom().address;
74-
const res = await dataProtector.grantAccess({
74+
await dataProtector.grantAccess({
7575
authorizedApp: getChainConfig(DEFAULT_CHAIN_ID).dappAddress,
7676
protectedData: protectedData1.address,
7777
authorizedUser: userWithAccess,
7878
});
79-
console.log("res", res);
8079
const contacts = await web3mail.fetchUserContacts({
8180
userAddress: userWithAccess,
8281
});

0 commit comments

Comments
 (0)