rpc: test CallCode and Call

This commit is contained in:
Ethan Buchman
2015-04-02 19:15:23 -07:00
parent ade13daec1
commit 5a2ff3d45b
6 changed files with 198 additions and 8 deletions

View File

@ -31,6 +31,14 @@ func TestHTTPGetStorage(t *testing.T) {
testGetStorage(t, "HTTP")
}
func TestHTTPCallCode(t *testing.T) {
testCallCode(t, "HTTP")
}
func TestHTTPCallContract(t *testing.T) {
testCall(t, "HTTP")
}
//--------------------------------------------------------------------------------
// Test the JSONRPC client
@ -57,3 +65,11 @@ func TestJSONBroadcastTx(t *testing.T) {
func TestJSONGetStorage(t *testing.T) {
testGetStorage(t, "JSONRPC")
}
func TestJSONCallCode(t *testing.T) {
testCallCode(t, "JSONRPC")
}
func TestJSONCallContract(t *testing.T) {
testCall(t, "JSONRPC")
}