Skip to content

Commit

Permalink
mark keplr signer replacement zone
Browse files Browse the repository at this point in the history
  • Loading branch information
nghuyenthevinh2000 committed Oct 19, 2023
1 parent fc3a0c8 commit 0728ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client-ts/Donex.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export interface GetAddressesBySocialResponse {
address: Addr[];
}
export interface GetSocialsByAddressResponse {
social_infos: string[];
social_infos: [string, string];
}
2 changes: 2 additions & 0 deletions client-ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ const rpcEndpoint = "http://ec2-3-0-52-194.ap-southeast-1.compute.amazonaws.com:
const contract_addr = "comdex14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9spunaxy"

async function createClient() {
// replace with keplr signer here
const signer = await DirectSecp256k1HdWallet.fromMnemonic(
"hover oyster chief slice eye police wrestle price syrup present drastic bone rally other subway away august renew drop parrot situate nation scatter venue",
{
prefix: "comdex"
}
)
let accounts = await signer.getAccounts()
// end replace with keplr signer

let client = await SigningCosmWasmClient.connectWithSigner(
rpcEndpoint,
Expand Down

0 comments on commit 0728ad1

Please sign in to comment.