git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit aadb72d7d45ed67836a3f278dbcdf1fd41de3c89

Tests: update to match EEI r1

Alex Beregszaszi committed on 8/17/2016, 10:23:35 PM
Parent: c1f210f2b9dd7eb8a7d517a18e0e4908d89c8ebb

Files changed

tests/interface/address.wastchanged
tests/interface/balance.wastchanged
tests/interface/basic_gas_ops.wastchanged
tests/interface/callDataSize.wastchanged
tests/interface/callValue.wastchanged
tests/interface/caller.wastchanged
tests/interface/origin.wastchanged
tests/interface/sstore.wastchanged
tests/interface/address.wastView
@@ -1,9 +1,9 @@
11 ;; starts with an address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
22 (module
33 (memory 1)
44
5- (import $address "ethereum" "address" (param i32))
5+ (import $address "ethereum" "getAddress" (param i32))
66 (export "test" 0)
77 (export "a" memory)
88 (func
99 (block
tests/interface/balance.wastView
@@ -1,8 +1,8 @@
11 ;; address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b has a balance of 100
22 (module
33 (memory 1 (segment 0 "\5d\48\c1\01\89\04\a1\72\88\68\29\bb\bd\9c\6f\4a\2d\06\c4\7b"))
4- (import $balance "ethereum" "balance" (param i32 i32))
4+ (import $balance "ethereum" "getBalance" (param i32 i32))
55 (export "a" memory)
66 (export "test" 0)
77 (func
88 (block
tests/interface/basic_gas_ops.wastView
@@ -1,8 +1,8 @@
11 ;; starts with 1000 gas
22 (module
33 (import $useGas "ethereum" "useGas" (param i32))
4- (import $gas "ethereum" "gas" (result i32))
4+ (import $gas "ethereum" "getGasLeft" (result i32))
55
66 (export "test" 0)
77 (func
88 ;; test adding gas
tests/interface/callDataSize.wastView
@@ -1,7 +1,7 @@
11 (module
22 (memory 1)
3- (import $callDataSize "ethereum" "callDataSize" (result i64))
3+ (import $callDataSize "ethereum" "getCallDataSize" (result i64))
44
55 (export "test" 0)
66 (func
77 (block
tests/interface/callValue.wastView
@@ -1,8 +1,8 @@
11 ;; call value of 100
22 (module
33 (memory 1)
4- (import $callValue "ethereum" "callValue" (param i32))
4+ (import $callValue "ethereum" "getCallValue" (param i32))
55
66 (export "a" memory)
77 (export "test" 0)
88 (func
tests/interface/caller.wastView
@@ -1,8 +1,8 @@
11 ;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
22 (module
33 (memory 1)
4- (import $caller "ethereum" "caller" (param i32))
4+ (import $caller "ethereum" "getCaller" (param i32))
55
66 (export "test" 0)
77 (export "a" memory)
88 (func
tests/interface/origin.wastView
@@ -1,8 +1,8 @@
11 ;; starts with an origin of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
22 (module
33 (memory 1)
4- (import $origin "ethereum" "origin" (param i32))
4+ (import $origin "ethereum" "getTxOrigin" (param i32))
55
66 (export "test" 0)
77 (export "a" memory)
88 (func
tests/interface/sstore.wastView
@@ -1,9 +1,9 @@
11 ;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
22 (module
33 (memory 1)
4- (import $sstore "ethereum" "sstore" (param i32 i32))
5- (import $sload "ethereum" "sload" (param i32 i32))
4+ (import $sstore "ethereum" "storageStore" (param i32 i32))
5+ (import $sload "ethereum" "storageLoad" (param i32 i32))
66
77 (export "test" 0)
88 (export "a" memory)
99 (func

Built with git-ssb-web