Skip to content

Commit

Permalink
Temporarily turning docker off
Browse files Browse the repository at this point in the history
  • Loading branch information
olivdb committed Apr 1, 2021
1 parent 7d404ae commit 33f2956
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 15 deletions.
28 changes: 25 additions & 3 deletions lib_0.7/paraswap/V4/AugustusSwapper.sol
Expand Up @@ -154,7 +154,14 @@ contract AugustusSwapper is AdapterStorage, TokenFetcherAugustus {
path
)
);
require(success, "Call to uniswap proxy failed");
// require(success, "Call to uniswap proxy failed");
if (!success) {
// solhint-disable-next-line no-inline-assembly
assembly {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
}

}

Expand Down Expand Up @@ -229,7 +236,15 @@ contract AugustusSwapper is AdapterStorage, TokenFetcherAugustus {
path
)
);
require(success, "Call to uniswap proxy failed");
// require(success, "Call to uniswap proxy failed");
if (!success) {
// solhint-disable-next-line no-inline-assembly
assembly {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
}


}

Expand Down Expand Up @@ -402,7 +417,14 @@ contract AugustusSwapper is AdapterStorage, TokenFetcherAugustus {
startIndexes[i + 1].sub(startIndexes[i]), // length of calldata
exchangeData// total calldata
);
require(result, "External call failed");
// require(result, "External call failed");
if (!result) {
// solhint-disable-next-line no-inline-assembly
assembly {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
}
}

receivedAmount = Utils.tokenBalance(
Expand Down
2 changes: 1 addition & 1 deletion test/paraswapV4.js
Expand Up @@ -325,5 +325,5 @@ contract("Paraswap Filter", (accounts) => {
});
}

["multiSwap", "simpleSwap", "swapOnUniswap", "swapOnUniswapFork", "megaSwap"].map(testsForMethod);
["multiSwap", "simpleSwap", "swapOnUniswap", "swapOnUniswapFork", "megaSwap"].forEach(testsForMethod);
});
2 changes: 1 addition & 1 deletion truffle-config-contracts-legacy-1.3.js
Expand Up @@ -8,7 +8,7 @@ module.exports = {
compilers: {
solc: {
version: "0.5.4",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-contracts-legacy-1.6.js
Expand Up @@ -8,7 +8,7 @@ module.exports = {
compilers: {
solc: {
version: "0.5.4",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-contracts-legacy-2.4.js
Expand Up @@ -8,7 +8,7 @@ module.exports = {
compilers: {
solc: {
version: "0.6.12",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-contracts-test.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.6.12",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-infrastructure-0.5.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.5.4",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-infrastructure.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.6.12",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-lib-0.5.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.5.4",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-lib-0.7.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.7.5",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-modules.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.6.12",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config-wallet.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.6.12",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion truffle-config.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
compilers: {
solc: {
version: "0.6.12",
docker: true,
docker: false,
settings: {
optimizer: {
enabled: true,
Expand Down

0 comments on commit 33f2956

Please sign in to comment.