Skip to content

Example code in transaction's comment doesn't work #7

@binier

Description

@binier

* @example
* of({}).
* initializeWallet(state => { ...wallet }).
* transaction(state => ({
* amount: "20"
* to: "wallet address"
* fee: "0.01"
* })).
* confirmOperation(state => ({
* injectionOperation: state.injectionOperation,
* })).
* then(state => console.log('amount transfered'))
*
*/

I suppose it should be something like this (untested):

of({}).pipe(
  initializeWallet(state => ({ ...wallet })),
  transaction(state => ({
    amount: "20",
    to: "wallet address",
    fee: "0.01",
  })),
  confirmOperation(state => ({
    injectionOperation: state.injectionOperation,
  })),
).subscribe(state => {
  console.log("amount transfered");
})

@jurajselep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions