@@ -45,10 +45,10 @@ export const useSubscribe = (): UseSubscribeHook => {
45
45
const sessionData = useSelector ( ( state : any ) => state . auth . session ) ;
46
46
const { bundlerClient, smartAccount } = useWeb3Session ( ) ;
47
47
48
- const transferToAccessAgreement = ( approvalAmount : bigint ) : string => {
48
+ const approveToAccessAgreement = ( approvalAmount : bigint ) : string => {
49
49
return encodeFunctionData ( {
50
50
abi : LedgerVaultabi . abi ,
51
- functionName : 'reserve ' ,
51
+ functionName : 'approve ' ,
52
52
args : [
53
53
GLOBAL_CONSTANTS . ACCESS_WORKFLOW_ADDRESS ,
54
54
approvalAmount ,
@@ -101,8 +101,8 @@ export const useSubscribe = (): UseSubscribeHook => {
101
101
const parties = [ sessionData ?. profile ?. ownedBy . address ] ; // The parties involved in the agreement (e.g., the user's address)
102
102
const payload = '0x' ; // Additional payload data if needed
103
103
104
- // Prepare the transfer to access agreement
105
- const transferToAccessAgreementData = transferToAccessAgreement ( approvalAmountInWei ) ;
104
+ // Prepare the approve to access agreement
105
+ const approveToAccessAgreementData = approveToAccessAgreement ( approvalAmountInWei ) ;
106
106
107
107
// Prepare the access agreement data
108
108
const registerAccessAgreementData = registerAccessAgreement (
@@ -117,7 +117,7 @@ export const useSubscribe = (): UseSubscribeHook => {
117
117
{
118
118
to : GLOBAL_CONSTANTS . LEDGER_VAULT_ADDRESS ,
119
119
value : 0 ,
120
- data : transferToAccessAgreementData ,
120
+ data : approveToAccessAgreementData ,
121
121
} ,
122
122
{
123
123
to : GLOBAL_CONSTANTS . ACCESS_WORKFLOW_ADDRESS ,
0 commit comments