Improve contract manager and switch evmos rpc (#1044)

* Small fixes and logging improvement

* Switch evmos rpc as the older one was not working anymore
This commit is contained in:
Amin Moghaddam 2023-09-07 08:16:14 +02:00 committed by GitHub
parent ed505d9e53
commit 51afd5aef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -29,7 +29,7 @@ async function main() {
try {
console.log(`${contract.getId()} ${await contract.getTotalFee()}`);
} catch (e) {
console.error(e);
console.error(`Error fetching fees for ${contract.getId()}`, e);
}
}
}

View File

@ -4,6 +4,7 @@ import { DefaultStore } from "../src/store";
import { SubmittedWormholeMessage, Vault } from "../src/governance";
import { parseVaa } from "@certusone/wormhole-sdk";
import { decodeGovernancePayload } from "xc_admin_common";
import { toPrivateKey } from "../src";
const parser = yargs(hideBin(process.argv))
.usage(
@ -89,7 +90,10 @@ async function main() {
contract.getChain().wormholeChainName === action.targetChainId
) {
console.log("executing vaa", lastExecuted + 1);
await contract.executeGovernanceInstruction(argv["private-key"], vaa);
await contract.executeGovernanceInstruction(
toPrivateKey(argv["private-key"]),
vaa
);
} else {
console.log(
`vaa is not for this chain (${

View File

@ -13,7 +13,7 @@
- id: evmos
wormholeChainName: evmos
mainnet: true
rpcUrl: https://json-rpc.evmos.blockhunters.org
rpcUrl: https://evmos-evm.publicnode.com
networkId: 9001
type: EvmChain
- id: goerli