Skip to content

Commit

Permalink
Add receive() external payable
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Mar 3, 2024
1 parent 5690464 commit ac473aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions packages/contracts/contracts/bridge/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ contract Bridge is BridgeStorage, Initializable, OwnableUpgradeable, UUPSUpgrade
event DepositedLiquidity(bytes32 tokenId, address account, uint256 amount, uint256 liquidity);
event WithdrawnLiquidity(bytes32 tokenId, address account, uint256 amount, uint256 liquidity);

event Received(address, uint256);

receive() external payable {
emit Received(msg.sender, msg.value);
}

modifier onlyValidator(address _account) {
require(validatorContract.isValidator(_account), "1000");
_;
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dms-bridge-contracts",
"version": "1.1.0",
"version": "1.2.0",
"description": "Smart Contracts of DMS Bridge",
"files": [
"**/*.sol"
Expand Down
2 changes: 1 addition & 1 deletion packages/library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dms-bridge-contracts-lib",
"version": "1.0.0",
"version": "1.2.0",

"description": "",
"main": "dist/bundle-cjs.js",
Expand Down

0 comments on commit ac473aa

Please sign in to comment.