From 39bfc1597d3daf879463706b9fadec408310fd72 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Mon, 23 Jan 2023 20:10:21 +0800 Subject: [PATCH] fix --- packages/protocol/docs/bridge/EtherVault.md | 4 ++-- packages/protocol/test/bridge/libs/LibBridgeProcess.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/protocol/docs/bridge/EtherVault.md b/packages/protocol/docs/bridge/EtherVault.md index b6696ec7798..76219729694 100644 --- a/packages/protocol/docs/bridge/EtherVault.md +++ b/packages/protocol/docs/bridge/EtherVault.md @@ -38,10 +38,10 @@ receive() external payable function init(address addressManager) external ``` -### receiveEther +### sendEther ```solidity -function receiveEther(uint256 amount) public +function sendEther(uint256 amount) public ``` Send Ether from EtherVault to the sender, checking they are authorized. diff --git a/packages/protocol/test/bridge/libs/LibBridgeProcess.test.ts b/packages/protocol/test/bridge/libs/LibBridgeProcess.test.ts index 8a77275ec03..77a47529288 100644 --- a/packages/protocol/test/bridge/libs/LibBridgeProcess.test.ts +++ b/packages/protocol/test/bridge/libs/LibBridgeProcess.test.ts @@ -53,7 +53,7 @@ describe("LibBridgeProcess", async function () { `${blockChainId}.ether_vault`, etherVault.address ); - // Sends initial value of 10 ether to EtherVault for receiveEther calls + // Sends initial value of 10 ether to EtherVault for sendEther calls await owner.sendTransaction({ to: etherVault.address, value: ethers.utils.parseEther("10.0"),