- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8
Closed
Labels
Description
We are getting this error when trying to execute a contract function deployed on testnet-1
Error: Unsupported type: '/eth.types.v1.EthAccount'
at accountFromAny (accounts.js:76:13)
    at SigningCosmWasmClient.getAccount (cosmwasmclient.js:82:54)
    at async SigningCosmWasmClient.getSequence (cosmwasmclient.js:91:21)
    at async SigningCosmWasmClient.sign (signingcosmwasmclient.js:406:11)
    at async SigningCosmWasmClient.signAndBroadcast (signingcosmwasmclient.js:365:19)
    at async SigningCosmWasmClient.executeMultiple (signingcosmwasmclient.js:290:20)
    at async smartContractExecuteRPC (execute.js:25:1)
    at async VueComponent.mint (index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/e-kyc/OnChainId.vue?vue&type=script&lang=js:161:24)
Code snippet we are trying:
import {
    NibiruTxClient,
    NibiruQuerier
} from "@nibiruchain/nibijs"
export async function createClient(rpcUrl, offlineSigner) {
   
    const txClient = await NibiruTxClient.connectWithSigner(
        rpcUrl,
        offlineSigner
    )
    console.log({
        txClient: txClient.wasmClient
    })
    return txClient.wasmClient
}
export async function createNonSigningClient(rpcUrl) {
    const client = await NibiruQuerier.connect(rpcUrl)
    return client
}version: "@nibiruchain/nibijs": "^4.5.1"
How to recreate?
try calling this particular contract nibi1ag6a26rvt9duue8wh8rsp94z9lx7c5pdjf8mlkals6f2uqr0aj0s4ltp6q function mint() with the following param:
{"hypersign_proof": {"credential_id": "", "data": "","description": "Proves that user has finished his/her KYC", "proof_type_image": "something", "sbt_code": "T1" , "proof_type" : "proof_of_personhood" }}
Make sure to generate a brand new wallet in Keplr and try.
Note; we have notice that when we use validator's account then it works. but when creating a brand new account in keplr wallet or even in cli, it does not work through JS sdk.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Completed