diff --git a/scripts/generate_protobuf.sh b/scripts/generate_protobuf.sh index fe5a68a..dfc5570 100644 --- a/scripts/generate_protobuf.sh +++ b/scripts/generate_protobuf.sh @@ -4,7 +4,7 @@ set -o errexit -o nounset -o pipefail SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" rm -rf "${SCRIPT_PATH}/SecretNetwork" -git clone --depth 1 --branch v1.5.0 https://github.com/scrtlabs/SecretNetwork "${SCRIPT_PATH}/SecretNetwork" +git clone --depth 1 --branch v1.7.1 https://github.com/scrtlabs/SecretNetwork "${SCRIPT_PATH}/SecretNetwork" SECRET_DIR="${SCRIPT_PATH}/SecretNetwork/proto" SECRET_THIRD_PARTY_DIR="${SCRIPT_PATH}/SecretNetwork/third_party/proto" diff --git a/secret_sdk/client/lcd/api/registration.py b/secret_sdk/client/lcd/api/registration.py index af2b519..b1f58fd 100644 --- a/secret_sdk/client/lcd/api/registration.py +++ b/secret_sdk/client/lcd/api/registration.py @@ -24,7 +24,8 @@ async def encrypted_seed(self, pub_key: str): async def consensus_io_pub_key(self): """Returns the consensus_io_pub_key""" result = await self._c._get(f"/registration/v1beta1/tx-key") - return extract_consensus_io_pub_key(base64.b64decode(result['key'])) + # return extract_consensus_io_pub_key(base64.b64decode(result['key'])) + return base64.b64decode(result['key']) class RegistrationAPI(AsyncRegistrationAPI): diff --git a/secret_sdk/client/lcd/lcdclient.py b/secret_sdk/client/lcd/lcdclient.py index 5277d37..d214b19 100644 --- a/secret_sdk/client/lcd/lcdclient.py +++ b/secret_sdk/client/lcd/lcdclient.py @@ -58,9 +58,12 @@ mainnet_chain_ids = {"secret-2", "secret-3", "secret-4"} +# mainnetConsensusIoPubKey = bytes.fromhex( +# "083b1a03661211d5a4cc8d39a77795795862f7730645573b2bcc2c1920c53c04" +# ) mainnetConsensusIoPubKey = bytes.fromhex( - "083b1a03661211d5a4cc8d39a77795795862f7730645573b2bcc2c1920c53c04" -) + "efdfbee583877e6d12c219695030a5bfb72e0a3abdc416655aa4a30c95a4446f" +) # == base64.b64decode("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8=") REQUEST_CONFIG = { "GET_TIMEOUT": 30, diff --git a/tests/setup_network.py b/tests/setup_network.py index 5d22daf..4605890 100644 --- a/tests/setup_network.py +++ b/tests/setup_network.py @@ -30,7 +30,7 @@ def setup_localsecret(): teardown_network() # 9091 grpc web, 1317 rest - run_command('docker run -it -d -p 9090:9090 -p 9091:9091 -p 1317:1317 --name localsecret ghcr.io/scrtlabs/localsecret:v1.5.0') + run_command('docker run -it -d -p 9090:9090 -p 9091:9091 -p 1317:1317 --name localsecret ghcr.io/scrtlabs/localsecret:v1.7.1') print("Waiting for the network to start...") await_blocks()