@hyperbridge/core 1.1.1 → 1.2.0

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.
@@ -140,7 +140,7 @@ abstract contract HyperApp is IApp {
140
140
  address feeToken = IDispatcher(hostAddr).feeToken();
141
141
  uint256 fee = quote(request);
142
142
  if (payer != address(this)) IERC20(feeToken).safeTransferFrom(payer, address(this), fee);
143
- IERC20(feeToken).safeApprove(hostAddr, fee);
143
+ IERC20(feeToken).forceApprove(hostAddr, fee);
144
144
  IDispatcher(hostAddr).dispatch(request);
145
145
  }
146
146
 
@@ -156,7 +156,7 @@ abstract contract HyperApp is IApp {
156
156
  address feeToken = IDispatcher(hostAddr).feeToken();
157
157
  uint256 fee = quote(response);
158
158
  if (payer != address(this)) IERC20(feeToken).safeTransferFrom(payer, address(this), fee);
159
- IERC20(feeToken).safeApprove(hostAddr, fee);
159
+ IERC20(feeToken).forceApprove(hostAddr, fee);
160
160
  IDispatcher(hostAddr).dispatch(response);
161
161
  }
162
162
 
@@ -172,7 +172,7 @@ abstract contract HyperApp is IApp {
172
172
  address feeToken = IDispatcher(hostAddr).feeToken();
173
173
  uint256 fee = quote(request);
174
174
  if (payer != address(this)) IERC20(feeToken).safeTransferFrom(payer, address(this), fee);
175
- IERC20(feeToken).safeApprove(hostAddr, fee);
175
+ IERC20(feeToken).forceApprove(hostAddr, fee);
176
176
  IDispatcher(hostAddr).dispatch(request);
177
177
  }
178
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbridge/core",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Hyperbridge Solidity SDK for dispatching & receiving cross-chain messages",
5
5
  "author": "Polytope Labs <hello@polytope.technology>",
6
6
  "license": "Apache-2.0",
@@ -30,8 +30,8 @@
30
30
  "bridges"
31
31
  ],
32
32
  "dependencies": {
33
+ "@openzeppelin/contracts": "^5.4.0",
33
34
  "@polytope-labs/solidity-merkle-trees": "^0.3.3",
34
- "openzeppelin-solidity": "^4.8.1",
35
35
  "prettier": "^3.3.3",
36
36
  "prettier-plugin-solidity": "^1.3.1"
37
37
  },