mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace fixed-version pragmas in Gnosis
This commit is contained in:
parent
32fdb1cd4b
commit
4876842f69
@ -54,6 +54,10 @@ function test_truffle
|
||||
sed -i -e 's/CappedCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0)/CappedCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, this.token.address)/' test/crowdsale/CappedCrowdsale.test.js
|
||||
sed -i -e 's/RefundableCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, { from: owner })/RefundableCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, this.token.address, { from: owner })/' test/crowdsale/RefundableCrowdsale.test.js
|
||||
fi
|
||||
if [ "$name" == "Gnosis" ]; then
|
||||
# Replace fixed-version pragmas in Gnosis (part of Consensys best practice)
|
||||
find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity 0/pragma solidity ^0/'
|
||||
fi
|
||||
npm run test
|
||||
)
|
||||
rm -rf "$DIR"
|
||||
|
Loading…
Reference in New Issue
Block a user