try to fix mainnet VM fork test

pull/4167/head
Joseph Izang 1 year ago
parent 82279503f8
commit 695d88280b
  1. 30
      apps/remix-ide-e2e/src/tests/transactionExecution.test.ts

@ -147,7 +147,7 @@ module.exports = {
.clickFunction('inputValue3 - transact (not payable)', { types: 'uint256[] _u', values: '["2.445e10", "13e1"]' }) .clickFunction('inputValue3 - transact (not payable)', { types: 'uint256[] _u', values: '["2.445e10", "13e1"]' })
.waitForElementContainsText('*[data-id="terminalJournal"]', '24450000000', 60000) .waitForElementContainsText('*[data-id="terminalJournal"]', '24450000000', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', '130', 60000) .waitForElementContainsText('*[data-id="terminalJournal"]', '130', 60000)
.click('*[data-id="deployAndRunClearInstances"]') .click('*[data-id="deployAndRunClearInstances"]')
}, },
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal #group3': function (browser: NightwatchBrowser) { 'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal #group3': function (browser: NightwatchBrowser) {
@ -385,7 +385,7 @@ contract C {
content: `// SPDX-License-Identifier: GPL-3.0 content: `// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7; pragma solidity ^0.8.7;
/// error description /// error description
/// @param a param1 /// @param a param1
/// @param b param2 /// @param b param2
@ -397,7 +397,7 @@ contract C {
} }
function g() public { function g() public {
revert CustomError(2, 3, "error_string_2"); revert CustomError(2, 3, "error_string_2");
} }
}` }`
} }
}, },
@ -406,7 +406,7 @@ contract C {
content: `// SPDX-License-Identifier: GPL-3.0 content: `// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7; pragma solidity ^0.8.7;
library lib { library lib {
/// error description from library /// error description from library
/// @param a param1 from library /// @param a param1 from library
@ -415,13 +415,13 @@ contract C {
error CustomError(uint a, uint b, string c); error CustomError(uint a, uint b, string c);
function set() public { function set() public {
revert CustomError(48, 46, "error_string_from_library"); revert CustomError(48, 46, "error_string_from_library");
} }
} }
contract D { contract D {
function h() public { function h() public {
lib.set(); lib.set();
} }
}` }`
} }
}, },
@ -439,10 +439,10 @@ contract C {
contract Owner { contract Owner {
address private owner; address private owner;
// event for EVM logging // event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner); event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner // modifier to check if caller is owner
modifier isOwner() { modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all // If the first argument of 'require' evaluates to 'false', execution terminates and all
@ -453,7 +453,7 @@ contract C {
require(msg.sender == owner, "Caller is not owner"); require(msg.sender == owner, "Caller is not owner");
_; _;
} }
/** /**
* @dev Set contract deployer as owner * @dev Set contract deployer as owner
*/ */
@ -472,7 +472,7 @@ contract C {
} }
/** /**
* @dev Return owner address * @dev Return owner address
* @return address of owner * @return address of owner
*/ */
function getOwner() external view returns (address) { function getOwner() external view returns (address) {
@ -507,7 +507,7 @@ contract C {
} }
/** /**
* @dev Return value * @dev Return value
* @return value of 'number' * @return value of 'number'
*/ */
function retrieve() public view returns (uint256){ function retrieve() public view returns (uint256){
@ -539,7 +539,7 @@ contract C {
return resolver.addr(node); return resolver.addr(node);
} }
} }
` `
} }
}, { }, {
"scientific_notation.sol": { "scientific_notation.sol": {
@ -571,7 +571,7 @@ contract C {
cake++; cake++;
} }
} }
` `
} }
} }
] ]

Loading…
Cancel
Save