-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Chore: Bump v5.0.0-rc.0 * Tests: Fix solidity tests * Tests: rename test file * Tests: remove useless arg from solidity test assert fn * docs: update coverage badge to be codecov * chore: remove coveralls from package.json Co-authored-by: Brett Sun <[email protected]>
- Loading branch information
1 parent
77bdbd9
commit 6c56874
Showing
8 changed files
with
64 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ yarn-error.log | |
package-lock.json | ||
|
||
# coverage | ||
.coverage* | ||
coverage/ | ||
coverageEnv/ | ||
coverage.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pragma solidity 0.4.24; | ||
|
||
import "../helpers/Assert.sol"; | ||
|
||
import "../../common/DelegateProxy.sol"; | ||
import "../../evmscript/ScriptHelpers.sol"; | ||
|
||
|
||
contract Target { | ||
function die() public { selfdestruct(0); } | ||
} | ||
|
||
contract TestDelegateProxySelfDestruct is DelegateProxy { | ||
using ScriptHelpers for *; | ||
|
||
Target target; | ||
|
||
// Mock ERCProxy implementation | ||
function implementation() public view returns (address) { | ||
return this; | ||
} | ||
|
||
function proxyType() public pure returns (uint256) { | ||
return FORWARDING; | ||
} | ||
|
||
function beforeAll() public { | ||
target = new Target(); | ||
} | ||
|
||
function testDieIfMinReturn0() public { | ||
Assert.isTrue(true, ''); // Make at least one assertion to satisfy the runner | ||
|
||
delegatedFwd(target, target.die.selector.toBytes()); | ||
Assert.fail('should be dead'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
const runSolidityTest = require('../../helpers/runSolidityTest') | ||
|
||
runSolidityTest('TestDelegateProxy') | ||
runSolidityTest('TestDelegateProxySelfDestruct') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
# yarn lockfile v1 | ||
|
||
|
||
"@aragon/contract-helpers-test@^0.1.0-rc.3": | ||
version "0.1.0-rc.3" | ||
resolved "https://registry.yarnpkg.com/@aragon/contract-helpers-test/-/contract-helpers-test-0.1.0-rc.3.tgz#dec428b5f0f7ffdf851663fd308dbc890ee045c1" | ||
integrity sha512-9bCQagWrrZqaM8pSZq2YAY/uavbuNeaiUnKILFXuVwrVTeX2tjExIcaVTyeiGzZDF/L52ruOMi/o+Ns+T2U/gQ== | ||
"@aragon/contract-helpers-test@^0.1.0": | ||
version "0.1.0" | ||
resolved "https://registry.yarnpkg.com/@aragon/contract-helpers-test/-/contract-helpers-test-0.1.0.tgz#5c5f09739a0b33ab66843bc4849cb2b997d88af0" | ||
integrity sha512-xP2CqqP0Jw/6Jdo1mRg4OxL+3gmsCYV3EJRy7xN8xUrhQIqkOyRptC44X951O7Cr+VeqXJq22rpZSr01TJZhNg== | ||
dependencies: | ||
web3-eth-abi "1.2.5" | ||
web3-utils "1.2.5" | ||
|
@@ -2445,17 +2445,6 @@ cors@^2.8.1: | |
object-assign "^4" | ||
vary "^1" | ||
|
||
coveralls@^3.0.9: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.1.0.tgz#13c754d5e7a2dd8b44fe5269e21ca394fb4d615b" | ||
integrity sha512-sHxOu2ELzW8/NC1UP5XVLbZDzO4S3VxfFye3XYCznopHy02YjNkHcj5bKaVw2O7hVaBdBjEdQGpie4II1mWhuQ== | ||
dependencies: | ||
js-yaml "^3.13.1" | ||
lcov-parse "^1.0.0" | ||
log-driver "^1.2.7" | ||
minimist "^1.2.5" | ||
request "^2.88.2" | ||
|
||
create-ecdh@^4.0.0: | ||
version "4.0.4" | ||
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e" | ||
|
@@ -5670,11 +5659,6 @@ lcid@^2.0.0: | |
dependencies: | ||
invert-kv "^2.0.0" | ||
|
||
lcov-parse@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0" | ||
integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A= | ||
|
||
lead@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/lead/-/lead-1.0.0.tgz#6f14f99a37be3a9dd784f5495690e5903466ee42" | ||
|
@@ -5891,11 +5875,6 @@ lodash@^4.17.4: | |
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" | ||
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== | ||
|
||
log-driver@^1.2.7: | ||
version "1.2.7" | ||
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" | ||
integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg== | ||
|
||
[email protected]: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" | ||
|
@@ -7620,7 +7599,7 @@ request-promise@^4.2.2: | |
stealthy-require "^1.1.1" | ||
tough-cookie "^2.3.3" | ||
|
||
request@^2.79.0, request@^2.85.0, request@^2.88.0, request@^2.88.2: | ||
request@^2.79.0, request@^2.85.0, request@^2.88.0: | ||
version "2.88.2" | ||
resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" | ||
integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== | ||
|