rpc: GetStorage and Call methods. Tests.

This commit is contained in:
Ethan Buchman
2015-03-31 04:53:34 -07:00
parent 6f0199aadf
commit dd1181f0d4
9 changed files with 229 additions and 42 deletions

View File

@@ -28,7 +28,7 @@ func BroadcastTx(tx types.Tx) (*ResponseBroadcastTx, error) {
var contractAddr []byte
// check if creates new contract
if callTx, ok := tx.(*types.CallTx); ok {
if callTx.Address == nil {
if len(callTx.Address) == 0 {
createsContract = 1
contractAddr = state.NewContractAddress(callTx.Input.Address, uint64(callTx.Input.Sequence))
}