Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

i install the dapp , and when dapp build it errors ,could anyone help me #105

Open
snowflowersnowflake opened this issue Aug 25, 2022 · 1 comment

Comments

@snowflowersnowflake
Copy link

first i met:
Error: Source file requires different compiler version (current compiler is 0.6.7+commit.b8d736ae.Linux.g++ - note that nightly builds are considered to be strictly less than the released version
--> src/test/flop.t.sol:18:1:
|
18 | pragma solidity ^0.6.12;

...

then I revise all the pragma to a fit range.

then met error:

testt@iZj6catsgyxin8nwhcin6wZ:~/dss$ dapp build

  • dapp clean
  • rm -rf out
  • solc --overwrite ds-test/=lib/ds-test/src/ ds-test=lib/ds-test/src/index.sol ds-token/=lib/ds-token/src/ ds-token=lib/ds-token/src/index.sol ds-value/=lib/ds-value/src/ ds-value=lib/ds-value/src/index.sol ds-auth/=lib/ds-token/lib/ds-auth/src/ ds-auth=lib/ds-token/lib/ds-auth/src/index.sol ds-math/=lib/ds-token/lib/ds-math/src/ ds-math=lib/ds-token/lib/ds-math/src/index.sol ds-thing/=lib/ds-value/lib/ds-thing/src/ ds-thing=lib/ds-value/lib/ds-thing/src/index.sol ds-note/=lib/ds-value/lib/ds-thing/lib/ds-note/src/ ds-note=lib/ds-value/lib/ds-thing/lib/ds-note/src/index.sol --combined-json=abi,bin,bin-runtime,srcmap,srcmap-runtime,ast,metadata /=/ src/flap.sol src/vow.sol src/flop.sol src/dai.sol src/abaci.sol src/end.sol src/test/pot.t.sol src/test/end.t.sol src/test/jug.t.sol src/test/flap.t.sol src/test/vow.t.sol src/test/dog.t.sol src/test/flip.t.sol src/test/fork.t.sol src/test/flop.t.sol src/test/clip.t.sol src/test/dai.t.sol src/test/cure.t.sol src/test/abaci.t.sol src/test/vat.t.sol src/flip.sol src/cat.sol src/pot.sol src/vat.sol src/join.sol src/dog.sol src/clip.sol src/cure.sol src/jug.sol src/spot.sol
    Warning: Contract code size exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
    --> src/test/clip.t.sol:243:1:
    Warning: Contract code size exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
    --> src/test/clip.t.sol:243:1:
    |
    243 | contract ClipperTest is DSTest {
    | ^ (Relevant source part starts here and spans across multiple lines).

Warning: Contract code size exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
--> src/test/cure.t.sol:25:1:
|
25 | contract CureTest is DSTest {
| ^ (Relevant source part starts here and spans across multiple lines).
...

I think it may be because of the optimizer (with a low "runs" value!) but I dont know where is the optimizer it said

@aUsABuisnessman
Copy link

I got a DWARF like that once it was only 44.0 Kibl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants