diff --git a/packages/zeta-app-contracts/contracts/multi-chain-value/MultiChainValue.sol b/packages/zeta-app-contracts/contracts/multi-chain-value/MultiChainValue.sol index 6387dd8a..fb7aa417 100644 --- a/packages/zeta-app-contracts/contracts/multi-chain-value/MultiChainValue.sol +++ b/packages/zeta-app-contracts/contracts/multi-chain-value/MultiChainValue.sol @@ -102,12 +102,6 @@ contract MultiChainValue is ZetaInteractor, MultiChainValueErrors { } function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external isValidRevertCall(zetaRevert) { - bool success1 = ZetaEth(zetaToken).approve(address(this), zetaRevert.remainingZetaValue); - bool success2 = ZetaEth(zetaToken).transferFrom( - address(this), - zetaRevert.zetaTxSenderAddress, - zetaRevert.remainingZetaValue - ); - if (!(success1 && success2)) revert ErrorTransferringZeta(); + //@dev this version do not handle revert } } diff --git a/packages/zeta-app-contracts/test/MultiChainValue.spec.ts b/packages/zeta-app-contracts/test/MultiChainValue.spec.ts index 42ae0072..3ee48dee 100644 --- a/packages/zeta-app-contracts/test/MultiChainValue.spec.ts +++ b/packages/zeta-app-contracts/test/MultiChainValue.spec.ts @@ -78,14 +78,7 @@ describe("MultiChainValue tests", () => { await expect(tx) .to.be.emit(zetaConnectorMockContract, "Send") - .withArgs( - chainBId, - account1Address.toLowerCase(), - 300000, - defaultAbiCoder.encode(["address"], [deployer.address]), - 10, - defaultAbiCoder.encode(["string"], [""]) - ); + .withArgs(chainBId, account1Address.toLowerCase(), 300000, "0x", 10, defaultAbiCoder.encode(["string"], [""])); }); it("Should send native token", async () => { @@ -138,7 +131,7 @@ describe("MultiChainValue tests", () => { ethers.utils.hexZeroPad("0x0", 32) ); - const balance = await zetaEthMockContract.balanceOf(account1.address); + const balance = await zetaEthMockContract.balanceOf(multiChainValueContractA.address); await expect(balance).to.be.eq(remainingZetaValue); });