feat: change ClientResponse.result struct
This commit is contained in:
@@ -19,7 +19,7 @@ func TestStruct(t *testing.T) {
|
||||
}
|
||||
|
||||
func genClient() (*Client, error) {
|
||||
url := "https://cpnode.demo.internetapi.cn/api/ctrlproxy/SCIDE"
|
||||
url := "http://021.node.internetapi.cn:43030/SCIDE"
|
||||
|
||||
pub, err := sm2util.ParsePublicKey("04153ad2d70e67741e0fc33e0c92c702e2afba2480dbea73d23fd02a3ce3a1b69979a7006a8e045f8836ae4797a8fe426823d7ad3450817e794948c8e47b60b711")
|
||||
if err != nil {
|
||||
@@ -86,7 +86,7 @@ func TestClient_ExecuteContract(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
resp, err := client.ExecuteContract("ShanxiControlProxy", "listRepository", "", false, true)
|
||||
resp, err := client.ExecuteContract("GlobalRouter", "resolveDoIdTest", "{\"doId\":\"bdtest021/ControlProxy\"}", false, true)
|
||||
|
||||
if err != nil {
|
||||
t.Log(resp)
|
||||
|
||||
Reference in New Issue
Block a user