mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Turn on patch to replace version pragmas for Zeppelin
An also replace every single one of them with ^0
This commit is contained in:
		
							parent
							
								
									b92be02bf0
								
							
						
					
					
						commit
						e9b2c650ce
					
				| @ -56,10 +56,10 @@ function test_truffle | ||||
|       echo "Current commit hash: `git rev-parse HEAD`" | ||||
|       npm install | ||||
|       find . -name soljson.js -exec cp "$SOLJSON" {} \; | ||||
|       if [ "$name" == "Gnosis" ]; then | ||||
|       if [ "$name" == "Zeppelin" -o "$name" == "Gnosis" ]; then | ||||
|         echo "Replaced fixed-version pragmas..." | ||||
|         # 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/' | ||||
|         find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [^;]+/pragma solidity ^0/' | ||||
|       fi | ||||
|       assertsol="node_modules/truffle/build/Assert.sol" | ||||
|       if [ -f "$assertsol" ] | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user