@towns-protocol/contracts 0.0.447 → 0.0.449

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towns-protocol/contracts",
3
- "version": "0.0.447",
3
+ "version": "0.0.449",
4
4
  "scripts": {
5
5
  "clean": "forge clean",
6
6
  "compile": "forge build",
@@ -33,7 +33,7 @@
33
33
  "@layerzerolabs/oapp-evm": "^0.3.2",
34
34
  "@openzeppelin/merkle-tree": "^1.0.8",
35
35
  "@prb/test": "^0.6.4",
36
- "@towns-protocol/prettier-config": "^0.0.447",
36
+ "@towns-protocol/prettier-config": "^0.0.449",
37
37
  "@wagmi/cli": "^2.2.0",
38
38
  "forge-std": "github:foundry-rs/forge-std#v1.10.0",
39
39
  "prettier": "^3.5.3",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "4847ff18b339d18d11d2c2cb8d22cdb425affe84"
53
+ "gitHead": "268f44c69d00993f57e702b176a9a9c34ea8f6cc"
54
54
  }
@@ -238,14 +238,16 @@ abstract contract TippingBase is ITippingBase, PointsBase {
238
238
  // Reset ERC20 approval
239
239
  if (!isNative) SafeTransferLib.safeApprove(currency, spaceFactory, 0);
240
240
 
241
- // Mint points for fee payment
242
- address airdropDiamond = _getAirdropDiamond();
243
- uint256 points = _getPoints(
244
- airdropDiamond,
245
- ITownsPointsBase.Action.Tip,
246
- abi.encode(protocolFee)
247
- );
248
- _mintPoints(airdropDiamond, msg.sender, points);
241
+ // Mint points for fee payment (only for ETH tips)
242
+ if (isNative) {
243
+ address airdropDiamond = _getAirdropDiamond();
244
+ uint256 points = _getPoints(
245
+ airdropDiamond,
246
+ ITownsPointsBase.Action.Tip,
247
+ abi.encode(protocolFee)
248
+ );
249
+ _mintPoints(airdropDiamond, msg.sender, points);
250
+ }
249
251
  }
250
252
 
251
253
  /// @dev Validates common tip requirements