Skip to content

Commit

Permalink
fix: add from fallback using CyberAccount address
Browse files Browse the repository at this point in the history
  • Loading branch information
akasuv committed Oct 30, 2023
1 parent 8689266 commit 91333a6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/CyberWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,16 @@ class CyberWallet {
}
}

public sendTransaction(
transaction: WalletTransaction,
option?: {
description?: string;
},
) {
public sendTransaction(transaction: WalletTransaction) {
this.messenger.sendMessage({
name: "action",
data: {
type: EventType.Request,
method: "sendTransaction",
data: { transaction, option },
data: {
...transaction,
from: transaction.from || this.cyberAccount?.address,
},
},
});

Expand Down

0 comments on commit 91333a6

Please sign in to comment.