Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Stellar SetOptions requires Signer to be present #265

Closed
tsusanka opened this issue Nov 16, 2018 · 0 comments · Fixed by #279
Closed

Stellar SetOptions requires Signer to be present #265

tsusanka opened this issue Nov 16, 2018 · 0 comments · Fixed by #279

Comments

@tsusanka
Copy link
Contributor

Although SetOptions does not need Signer, it requiers the field to be present. This following transaction fails:

{
  "source": "GDNAQREX5VOHMYZ2QDHDY6A7XR2OYIE67EETL5MFCT6TCGHYA7YHACEW",
  "fee": 100,
  "sequence": "89703140756029442",
  "operations": [
    {
      "type": "setOptions",
      "inflationDest": "GCCD6AJOYZCUAQLX32ZJF2MKFFAUJ53PVCFQI3RHWKL3V47QYE2BNAUT",
    }
  ],
  "memo": {
    "type": 0
  }
}

on error Cannot read property 'type' of undefined. This tx is however correct:

{
  "source": "GDNAQREX5VOHMYZ2QDHDY6A7XR2OYIE67EETL5MFCT6TCGHYA7YHACEW",
  "fee": 100,
  "sequence": "89703140756029442",
  "operations": [
    {
      "type": "setOptions",
      "inflationDest": "GCCD6AJOYZCUAQLX32ZJF2MKFFAUJ53PVCFQI3RHWKL3V47QYE2BNAUT",
      "signer": ""
    }
  ],
  "memo": {
    "type": 0
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant