Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/command/stake/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ export class Deposit extends RootCommand implements LeafCommand {
})
public amountPlur!: bigint | undefined

@Option({
key: 'gas-price',
description: 'Gas price of the transaction in wei',
type: 'bigint',
minimum: 0,
})
public gasPrice!: bigint

public async run(): Promise<void> {
super.init()

Expand Down Expand Up @@ -88,7 +96,7 @@ export class Deposit extends RootCommand implements LeafCommand {
}

try {
await this.bee.depositStake(amount)
await this.bee.depositStake(amount, { gasPrice: this.gasPrice })
spinner.stop()
} catch (e) {
spinner.stop()
Expand Down
Loading