Skip to content

Commit

Permalink
build(plugin-satp-hermes): fix solidity lib import paths in satp tests
Browse files Browse the repository at this point in the history
Import paths were invalid possibly because the files were moved around
within the directory tree and the imports never got updated.

There are still imports which are invalid because of issues with the remix
IDE test library being used but not declared as a dependency. I've opened
a separate issue about fixing those problems here:
#3585

Signed-off-by: Peter Somogyvari <[email protected]>
  • Loading branch information
petermetz committed Oct 11, 2024
1 parent 39feb14 commit 34c81e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

pragma solidity ^0.8.15;

import "./../contracts/satp-erc20.sol";
import "../main/satp-erc20.sol";
import "remix_tests.sol";
import "remix_accounts.sol";

import "remix_accounts.sol";

contract SATPContractTest {

SATPContract satpContract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import "remix_tests.sol";
// Although it may fail compilation in 'Solidity Compiler' plugin
// But it will work fine in 'Solidity Unit Testing' plugin
import "remix_accounts.sol";
import "../contracts/satp-wrapper.sol";
import "./../contracts/satp-erc20.sol";
import "../main/satp-wrapper.sol";
import "../main/satp-erc20.sol";

contract SATPWrapTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

pragma solidity ^0.8.15;

import "./../contracts/satp-erc20.sol";
import "../main/satp-erc20.sol";
import "remix_tests.sol";
import "remix_accounts.sol";

import "remix_accounts.sol";

contract SATPContractTest {

SATPContract satpContract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import "remix_tests.sol";
// Although it may fail compilation in 'Solidity Compiler' plugin
// But it will work fine in 'Solidity Unit Testing' plugin
import "remix_accounts.sol";
import "../contracts/satp-wrapper.sol";
import "./../contracts/satp-erc20.sol";

import "../../../../solidity/satp-wrapper.sol";
import "../satp-erc20.sol";

contract SATPWrapTest {

Expand Down

0 comments on commit 34c81e7

Please sign in to comment.