Skip to content

Commit

Permalink
verifier: uses solana public keys as base58 from config
Browse files Browse the repository at this point in the history
  • Loading branch information
scnale committed Apr 25, 2024
1 parent 05f4a86 commit ddf4f05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config_verifier/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ async function configureSolana(rpc, managerAddress){
);

// Devnet configuration....
const fromHexString = (hexString) => Uint8Array.from(hexString.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));
// const fromHexString = (hexString) => Uint8Array.from(hexString.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));
managerData['managerAddress'] = managerAddress;
const manager = new NTT(SOL_CONNECTION, {
nttId: base58.encode(fromHexString(managerAddress.substring(2))),
nttId: managerAddress,
wormholeId: "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5",
});


var to_public_key = new web3.PublicKey(
base58.encode(fromHexString(managerAddress.substring(2)))
managerAddress
);
// var accounts = await SOL_CONNECTION.getProgramAccounts(to_public_key, {filters: [{
// memcmp: {
Expand Down

0 comments on commit ddf4f05

Please sign in to comment.