Commit aadb72d7d45ed67836a3f278dbcdf1fd41de3c89
Tests: update to match EEI r1
Alex Beregszaszi committed on 8/17/2016, 10:23:35 PMParent: c1f210f2b9dd7eb8a7d517a18e0e4908d89c8ebb
Files changed
tests/interface/address.wast | ||
---|---|---|
@@ -1,9 +1,9 @@ | ||
1 | 1 | ;; starts with an address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b |
2 | 2 | (module |
3 | 3 | (memory 1) |
4 | 4 | |
5 | - (import $address "ethereum" "address" (param i32)) | |
5 | + (import $address "ethereum" "getAddress" (param i32)) | |
6 | 6 | (export "test" 0) |
7 | 7 | (export "a" memory) |
8 | 8 | (func |
9 | 9 | (block |
tests/interface/balance.wast | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | ;; address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b has a balance of 100 |
2 | 2 | (module |
3 | 3 | (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)) | |
5 | 5 | (export "a" memory) |
6 | 6 | (export "test" 0) |
7 | 7 | (func |
8 | 8 | (block |
tests/interface/basic_gas_ops.wast | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | ;; starts with 1000 gas |
2 | 2 | (module |
3 | 3 | (import $useGas "ethereum" "useGas" (param i32)) |
4 | - (import $gas "ethereum" "gas" (result i32)) | |
4 | + (import $gas "ethereum" "getGasLeft" (result i32)) | |
5 | 5 | |
6 | 6 | (export "test" 0) |
7 | 7 | (func |
8 | 8 | ;; test adding gas |
tests/interface/callDataSize.wast | ||
---|---|---|
@@ -1,7 +1,7 @@ | ||
1 | 1 | (module |
2 | 2 | (memory 1) |
3 | - (import $callDataSize "ethereum" "callDataSize" (result i64)) | |
3 | + (import $callDataSize "ethereum" "getCallDataSize" (result i64)) | |
4 | 4 | |
5 | 5 | (export "test" 0) |
6 | 6 | (func |
7 | 7 | (block |
tests/interface/callValue.wast | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | ;; call value of 100 |
2 | 2 | (module |
3 | 3 | (memory 1) |
4 | - (import $callValue "ethereum" "callValue" (param i32)) | |
4 | + (import $callValue "ethereum" "getCallValue" (param i32)) | |
5 | 5 | |
6 | 6 | (export "a" memory) |
7 | 7 | (export "test" 0) |
8 | 8 | (func |
tests/interface/caller.wast | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | ;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b |
2 | 2 | (module |
3 | 3 | (memory 1) |
4 | - (import $caller "ethereum" "caller" (param i32)) | |
4 | + (import $caller "ethereum" "getCaller" (param i32)) | |
5 | 5 | |
6 | 6 | (export "test" 0) |
7 | 7 | (export "a" memory) |
8 | 8 | (func |
tests/interface/origin.wast | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | ;; starts with an origin of 5d48c1018904a172886829bbbd9c6f4a2d06c47b |
2 | 2 | (module |
3 | 3 | (memory 1) |
4 | - (import $origin "ethereum" "origin" (param i32)) | |
4 | + (import $origin "ethereum" "getTxOrigin" (param i32)) | |
5 | 5 | |
6 | 6 | (export "test" 0) |
7 | 7 | (export "a" memory) |
8 | 8 | (func |
tests/interface/sstore.wast | ||
---|---|---|
@@ -1,9 +1,9 @@ | ||
1 | 1 | ;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b |
2 | 2 | (module |
3 | 3 | (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)) | |
6 | 6 | |
7 | 7 | (export "test" 0) |
8 | 8 | (export "a" memory) |
9 | 9 | (func |
Built with git-ssb-web