figment-networks/learn-web3-dapp

Solana Step 5 funding account not working (Unable to fund address: Non-base58 character)

benjacksondev opened this issue · 1 comments

I get the following error at Step 5 when trying to fund the account on devnet.

Steps to recreate.

  1. Start Up Gitpod.
  2. Copy and paste solutions in corresponding files and run through the samples up until Step 5
  3. Copy and paste sample at Step 5 same as before and run; see error below:
"error":{
    "message":"Non-base58 character"
    "file":"/api/solana/fund"
    "args":{
    "address":"[object Object]"
    "network":"devnet"
  }
}

On step 4 I had const address = keypair.toString(); instead of const address = keypair?.publicKey.toString();, which allowed the step to pass but was assigning [object, object] rather than the publicKey value to the address const.