-2

i'm moving from testnet to pubnet but for some reason my code didn't work with pubnet. here some snippet. Of course sourceAccount,des.publicKey and sourceKeys contain what i'm expeting.

sourceAccount contain pubKey of sender des.publicKey() contain pubkey of receiver and sourceKeys is a keypair from Secret. This works well on testnet but not on pubnet enter image description here enter image description here

  • 1
    Can you copy the full code, as text? – Bartek Nowotarski Jun 26 '18 at 15:34
  • is too long for stackexchange's comment space, but even if i set the 3 variables the line over the transaction's building it return me tx_bad_auth error – AndreaBorio Jun 26 '18 at 15:40
0

Fixed adding StellarSdk.Network.usePublicNetwork(); before signin the transaction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.