-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
tezos-wallet/src/transaction/createTransaction.ts
Lines 27 to 40 in 04d2f3e
| * @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");
})
Metadata
Metadata
Assignees
Labels
No labels