diff --git a/apps/remix-ide-e2e/src/tests/debugger.test.ts b/apps/remix-ide-e2e/src/tests/debugger.test.ts index b9602b4b57..6c8aba64dd 100644 --- a/apps/remix-ide-e2e/src/tests/debugger.test.ts +++ b/apps/remix-ide-e2e/src/tests/debugger.test.ts @@ -266,7 +266,7 @@ const sources = [ 'blah.sol': { content: ` pragma solidity >=0.7.0 <0.9.0; - + contract Kickstarter { enum State { Started, Completed } @@ -276,9 +276,9 @@ const sources = [ string name; uint goal; State state; - } + } - Project[] public projects; + Project[] public projects; constructor() { @@ -291,7 +291,7 @@ const sources = [ project.state = State.Started; project.goal = goal; } - } + } ` } }, @@ -309,12 +309,12 @@ const sources = [ function test1 (bytes calldata userData) external returns (bytes memory, bytes32, bytes32, uint) { bytes32 idAsk = abi.decode(userData[:33], (bytes32)); bytes32 idOffer = abi.decode(userData[32:64], (bytes32)); - + bytes memory ro = abi.encodePacked(msg.sender, msg.sender, idAsk, idOffer); return (ro, idAsk, idOffer, userData.length); } - - + + function testgp (bytes calldata userData) external returns (bytes4) { return abi.decode(userData[:4], (bytes4)); } @@ -341,9 +341,9 @@ const sources = [ 'withGeneratedSources.sol': { content: ` // SPDX-License-Identifier: GPL-3.0 - pragma experimental ABIEncoderV2; - contract A { - function f(uint[] memory) public returns (uint256) { } + pragma experimental ABIEncoderV2; + contract A { + function f(uint[] memory) public returns (uint256) { } } ` } @@ -372,7 +372,7 @@ const sources = [ } /** - * @dev Return value + * @dev Return value * @return value of 'number' */ function retrieve() public view returns (uint256){ @@ -393,14 +393,14 @@ const sources = [ function callA() public { p = 123; try b.callB() { - + } catch (bytes memory reason) { - + } } } - + contract B { C c; uint p; @@ -413,7 +413,7 @@ const sources = [ c.callC(); } } - + contract C { uint p; function callC() public { @@ -498,7 +498,7 @@ const jsGetTrace = `(async () => { } })()` -const jsDebug = `(async () => { +const jsDebug = `(async () => { try { const result = await remix.call('debugger', 'debug', '0x65f0813753462414f9a91f0aabea946188327995f54b893b63a8d7ff186cfca3') console.log('result ', result) diff --git a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx index c8e6c17ffb..fcfadddd12 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx @@ -334,7 +334,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) { {atAddressOptions.title} }> - + {buttonOptions.title} }> - + @@ -252,8 +252,8 @@ export function ContractGUI (props: ContractGUIProps) { className="form-control" data-id={props.funcABI.type === 'fallback' || props.funcABI.type === 'receive' ? `'(${props.funcABI.type}')` : 'multiParamManagerBasicInputField'} placeholder={props.inputs} - data-title={props.funcABI.type === 'fallback' || props.funcABI.type === 'receive' ? `'(${props.funcABI.type}')` : props.inputs} onChange={handleBasicInput} + data-title={props.funcABI.type === 'fallback' || props.funcABI.type === 'receive' ? `'(${props.funcABI.type}')` : props.inputs} ref={basicInputRef} style={{ visibility: !((props.funcABI.inputs && props.funcABI.inputs.length > 0) || (props.funcABI.type === 'fallback') || (props.funcABI.type === 'receive')) ? 'hidden' : 'visible' }} />