helium-wallet-rs: Can't assert location (decode error)

Recently upgraded to 1.4.1 and can’t seem to update the location of a hotspot using the new hotspots assert. Running miner-arm64_2021.03.09.0_GA

docker exec miner miner txn assert_location location=$location owner=$wallet_address --nonce $nonce

The output gets stored in $output and then I run

helium-wallet -f $wallet_path --format json hotspots assert $output --commit
Password: [hidden]
error: decode error

I verified my wallet.key with helium-wallet verify

Am I doing something wrong or is this a bug? There has been discussion about this in discord as well where another person has reported the same issue.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Most upvoted comments

via discussion with madninja, you need to set the --payer on the miner cli. From past experience, I hadn’t needed to specify the payer because it was implied by the owner value and when payer was not set. That’s fine if it’s changed, just should be better documented. So, here’s the latest that worked for me:

docker exec miner miner txn assert_location \
 location=$location \
 owner=$wallet_address \
 --nonce $nonce \
 --payer $wallet_address
helium-wallet -f $wallet_path --format json hotspots assert $output --commit

So, maybe not a helium-wallet specific issue and a miner cli issue, but in general it would be nice of the documentation was clearer everywhere.