Skip to content

Commit c99289b

Browse files
committed
docs: Error Message contains mismatched contract hash due to recent changes. not due to debugging Secret Gateway
1 parent e2907bb commit c99289b

File tree

5 files changed

+13
-283
lines changed

5 files changed

+13
-283
lines changed

_QUICKSTART.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ scp -r $SOURCE root@$REMOTE_IP:$DESTINATION
129129
}
130130
```
131131
132+
* Paste `verification_key` into Gateway.sol for value of `secret_gateway_signer_pubkey`
133+
134+
* Redeploy if differs Gateway.sol
135+
132136
* Paste them into deploy.ts, `gatewayContractPublicKey` with `verification_key` and `gatewayContractEncryptionKeyForChaChaPoly1305` with `encryption_key`
133137
134138
* UPDATE CONFIG AND RUN ON LOCAL IF DIFFERS

_SETUP.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ git submodule update --init --recursive
370370
}
371371
```
372372

373+
* Paste `verification_key` into Gateway.sol for value of `secret_gateway_signer_pubkey`
374+
375+
* Redeploy if differs Gateway.sol
376+
373377
* Paste them into deploy.ts, `gatewayContractPublicKey` with `verification_key` and `gatewayContractEncryptionKeyForChaChaPoly1305` with `encryption_key`
374378

375379
* NEXT, [Deploy Nunya Contract on Localhost](#deploy-nunya-contract-on-localhost)

logs_secret/requestValueLocalhostSecretLogs.log

Lines changed: 2 additions & 280 deletions
Large diffs are not rendered by default.

packages/hardhat/contracts/Gateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ contract Gateway is Ownable, Utils, Base64 {
4949
string constant public task_destination_network = "secretdev-1";
5050
// TODO: Create a function to set these values? Or is it generated randomly each time the Secret Gateway contract is deployed?
5151
// This is the Derived Ethereum Address from the Public Key of the deployed Gateway contract on the Secret Network Testnet
52-
// uint256 immutable public secret_gateway_signer_pubkey = 0x04d0ce1bd101c1a2a130185e4c63d1d7091db9ab0dca3c651998d314a1550323c02649b0960b00bb1fac896aaf4056abb605e87d55ec1805a91ddb3e32c6b89c36;
52+
// uint256 immutable public secret_gateway_signer_pubkey = 0x04ce67eab1372a0f4dfadcb4354f07154cb1343efb8ae5a3671cb24732d217ee865d6101a90d23e3d640d7958657b9923d4e078994553770b466fd37b138fd802c;
5353
// address immutable public secret_gateway_signer_address = ???;
5454

5555
// TODO: Add deployed custom Secret contract address to be same as `SECRET_ADDRESS` and codehash `CONTRACT_CODE_HASH` used in scripts

packages/secret-contracts-scripts/src/config/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ const config = {
8686
gatewayContractAddress: "secret1mfk7n6mc2cg6lznujmeckdh4x0a5ezf6hx6y8q", // only know after instantiate
8787
gatewayContractCodeHash: "b9fb512153812cd554884922d10c007bef9d2749d14ae9fda445e83710ee8c10", // only know after upload
8888
// obtain from running `yarn run secret:querySecretGatewayPubkey`
89-
gatewayContractPublicKey: "0x04c545d3a2aa0d070a579beca7eca512a1b6c84a027a2e7df0b9caad10190cf45d14495e7c0d04e9cc9b16205cce6ef4b2a1b1b613aaae97753be3379519b3cc7f",
89+
gatewayContractPublicKey: "0x04ce67eab1372a0f4dfadcb4354f07154cb1343efb8ae5a3671cb24732d217ee865d6101a90d23e3d640d7958657b9923d4e078994553770b466fd37b138fd802c",
9090
// obtain from running `yarn run secret:querySecretGatewayPubkey`
91-
gatewayContractEncryptionKeyForChaChaPoly1305: "A8VF06KqDQcKV5vsp+ylEqG2yEoCei598LnKrRAZDPRd",
91+
gatewayContractEncryptionKeyForChaChaPoly1305: "As5n6rE3Kg9N+ty0NU8HFUyxND77iuWjZxyyRzLSF+6G",
9292
gatewayContractWasmPath: "secret-gateway-contract.wasm.gz",
9393
}
9494
}

0 commit comments

Comments
 (0)