From e780037cb4e361fcc9c477cd2a073b4bfb2d5797 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 11 Jan 2023 11:23:47 +0300 Subject: [PATCH] rpcsrv: use valid stateroot hash in failing tests Just in case. --- pkg/services/rpcsrv/server_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/services/rpcsrv/server_test.go b/pkg/services/rpcsrv/server_test.go index 7841c4828..08d636d07 100644 --- a/pkg/services/rpcsrv/server_test.go +++ b/pkg/services/rpcsrv/server_test.go @@ -472,22 +472,22 @@ var rpcTestCases = map[string][]rpcTestCase{ }, { name: "invalid contract", - params: `["0000000000000000000000000000000000000000000000000000000000000000", "0xabcdef"]`, + params: `["` + block20StateRootLE + `", "0xabcdef"]`, fail: true, }, { name: "invalid prefix", - params: `["0000000000000000000000000000000000000000000000000000000000000000", "` + testContractHash + `", "notabase64%"]`, + params: `["` + block20StateRootLE + `", "` + testContractHash + `", "notabase64%"]`, fail: true, }, { name: "invalid key", - params: `["0000000000000000000000000000000000000000000000000000000000000000", "` + testContractHash + `", "QQ==", "notabase64%"]`, + params: `["` + block20StateRootLE + `", "` + testContractHash + `", "QQ==", "notabase64%"]`, fail: true, }, { name: "unknown contract/large count", - params: `["0000000000000000000000000000000000000000000000000000000000000000", "0000000000000000000000000000000000000000", "QQ==", "QQ==", 101]`, + params: `["` + block20StateRootLE + `", "0000000000000000000000000000000000000000", "QQ==", "QQ==", 101]`, fail: true, }, },