Skip to content

Commit

Permalink
Version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsm412 committed Jun 17, 2024
1 parent 1778738 commit 430f01a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
14 changes: 7 additions & 7 deletions rair-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"prepare": "cd ../ && husky install ./minting-marketplace/.husky"
},
"dependencies": {
"@alchemy/aa-accounts": "^3.5.1",
"@alchemy/aa-alchemy": "^3.5.1",
"@alchemy/aa-core": "^3.5.1",
"@alchemy/aa-ethers": "^3.5.1",
"@alchemy/aa-signers": "^3.5.1",
"@alchemy/aa-accounts": "^3.18.2",
"@alchemy/aa-alchemy": "^3.18.2",
"@alchemy/aa-core": "^3.18.2",
"@alchemy/aa-ethers": "^3.18.2",
"@alchemy/aa-signers": "^3.18.2",
"@analytics/google-analytics": "^1.0.7",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
Expand All @@ -38,8 +38,8 @@
"@types/uuid": "^9.0.7",
"@walletconnect/sign-client": "^2.10.6",
"@walletconnect/utils": "^2.11.0",
"@web3auth/base": "^8.0.0",
"@web3auth/modal": "^8.0.1",
"@web3auth/base": "^8.6.2",
"@web3auth/modal": "^8.6.2",
"alchemy-sdk": "^3.2.0",
"analytics": "^0.8.9",
"axios": "^1.6.2",
Expand Down
13 changes: 9 additions & 4 deletions rair-front/src/hooks/useWeb3Tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import { useCallback } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { createModularAccountAlchemyClient } from '@alchemy/aa-alchemy';
import { SendUserOperationResult } from '@alchemy/aa-core';
import {
SendUserOperationResult,
UserOperationOverrides
} from '@alchemy/aa-core';
import { EthersProviderAdapter } from '@alchemy/aa-ethers';
import { Web3AuthSigner } from '@alchemy/aa-signers/web3auth';
import { Alchemy } from 'alchemy-sdk';
Expand Down Expand Up @@ -249,16 +252,18 @@ const useWeb3Tx = () => {
}
}));

const overrides: UserOperationOverrides = {
paymasterAndData: '0x'
};

const userOperation = await (programmaticProvider.account as any)
.sendUserOperation({
uo: {
target: contract.address as `0x${string}`,
data: uoCallData,
value: transactionValue
},
overrides: elegibleForSponsorship
? undefined
: { paymasterAndData: '0x' }
overrides: elegibleForSponsorship ? undefined : overrides
})
.catch((err) => {
// console.info(err);
Expand Down

0 comments on commit 430f01a

Please sign in to comment.