ERROR TypeError: XDR Write Error: [object Object] is not a ScVal
Getting the following error when I call the add_account
function in the below contract . The function takes a address argument, so from the react app, when i convert the address to ScVal using StellarSdk.Address, I get the error . I get thesame error when I try to call a simple contract that takes a simple i128 value . How do I convert javascipt types from a react app to scVal the corret way ?
How to extract already signed public keys from a transaction envelope decoded from XDR?
I’m working with a transaction envelope that I decoded from XDR, and I’m trying to extract the signed public keys from it. Here’s a truncated version of the envelope: