@@ -1497,40 +1497,24 @@ export class AlloV2 implements Allo {
14971497 _token = getAddress ( NATIVE ) ;
14981498 }
14991499
1500-
15011500 const strategy = new DirectAllocationStrategy ( {
15021501 chain : this . chainId ,
15031502 poolId : poolId ,
15041503 } ) ;
1505-
1506- const txData = strategy . getAllocateData (
1507- {
1508- profileOwner : args . recipient ,
1509- amount : BigInt ( args . amount . toString ( ) ) ,
1510- token : _token ,
1511- nonce : args . nonce ,
1512- } ,
1513- ) ;
1504+
1505+ const txData = strategy . getAllocateData ( {
1506+ profileOwner : args . recipient ,
1507+ amount : BigInt ( args . amount . toString ( ) ) ,
1508+ token : _token ,
1509+ nonce : args . nonce ,
1510+ } ) ;
15141511
15151512 const tx = await sendRawTransaction ( this . transactionSender , {
15161513 to : txData . to ,
15171514 data : txData . data ,
15181515 value : BigInt ( txData . value ) ,
15191516 } ) ;
15201517
1521- // const encodeData = utils.defaultAbiCoder.encode(
1522- // ["address", "uint256", "address", "uint256"],
1523- // [args.recipient, args.amount, _token, args.nonce]
1524- // );
1525-
1526- // const tx = await sendTransaction(this.transactionSender, {
1527- // address: this.allo.address(),
1528- // abi: AlloAbi,
1529- // functionName: "allocate",
1530- // args: [poolId, encodeData as Hex],
1531- // value: args.tokenAddress === zeroAddress ? args.amount : 0n,
1532- // });
1533-
15341518 emit ( "transaction" , tx ) ;
15351519
15361520 if ( tx . type === "error" ) {
0 commit comments