diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-03-13 20:04:05 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-03-13 20:04:05 +0800 |
commit | 9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862 (patch) | |
tree | 1687662d476ead7437a19f2c4499a16736ec2117 | |
parent | 0de5ff34fd14777740ac816d6866f7987f955bc6 (diff) | |
download | dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.tar dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.tar.gz dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.tar.bz2 dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.tar.lz dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.tar.xz dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.tar.zst dexon-solidity-9da83dc6d2d26c43a5aa53fda4fc105f7d3c2862.zip |
add addmod test in order toc check that nothing get downcasted inbetween
-rw-r--r-- | vmArithmeticTestFiller.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vmArithmeticTestFiller.json b/vmArithmeticTestFiller.json index 16e085a1..1aae823b 100644 --- a/vmArithmeticTestFiller.json +++ b/vmArithmeticTestFiller.json @@ -1485,6 +1485,34 @@ } }, + "addmodBigIntCast": { + "env" : { + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentNumber" : "0", + "currentGasLimit" : "1000000", + "currentDifficulty" : "256", + "currentTimestamp" : "1", + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "nonce" : "0", + "code" : "{ [[ 0 ]] (ADDMOD 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 1 5) } ", + "storage": {} + } + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "origin" : "cd1722f2947def4cf144679da39c4c32bdc35681", + "caller" : "cd1722f2947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000", + "data" : "", + "gasPrice" : "100000000000000", + "gas" : "100000" + } + }, + "addmod1_overflow2": { "env" : { "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", |