Skip to content

Commit e72cf97

Browse files
authored
add message to sign on ledger (#2)
1 parent f826131 commit e72cf97

5 files changed

+5
-0
lines changed

commands/release-rewards.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'
44

55
export const releaseRewards = async opts => {
66
const { contractWithSigner } = await createContract(opts)
7+
console.error('Please sign on your ledger...')
78
const tx = await contractWithSigner.releaseRewards()
89
console.log(tx.hash)
910
console.log('Awaiting confirmation...')

commands/set-min-balance-for-transfer.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const setMinBalanceForTransfer = async ({ minBalance, ...opts }) => {
66
console.log(`setting min balance for transfer to ${ethers.formatEther(minBalance)} FIL`)
77
console.log(`current value: ${ethers.formatEther(await contract.minBalanceForTransfer())} FIL`)
88

9+
console.error('Please sign on your ledger...')
910
const tx = await contractWithSigner.setMinBalanceForTransfer(minBalance)
1011
console.log(tx.hash)
1112
}

commands/set-next-round-length.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const setNextRoundLength = async ({ blocks, ...opts }) => {
55
console.log(`setting next round length to ${blocks} blocks`)
66
console.log(`current value: ${await contract.nextRoundLength()} blocks`)
77

8+
console.error('Please sign on your ledger...')
89
const tx = await contractWithSigner.setNextRoundLength(blocks)
910
console.log(tx.hash)
1011
console.log('Awaiting confirmation...')

commands/set-round-reward.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const setRoundReward = async ({ reward, ...opts }) => {
66
console.log(`setting round reward to ${ethers.formatEther(reward)} FIL`)
77
console.log(`current value: ${ethers.formatEther(await contract.roundReward())} FIL`)
88

9+
console.error('Please sign on your ledger...')
910
const tx = await contractWithSigner.setRoundReward(reward)
1011
console.log(tx.hash)
1112
console.log('Awaiting confirmation...')

commands/tick.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { createContract } from '../index.js'
22

33
export const tick = async opts => {
44
const { contractWithSigner } = await createContract(opts)
5+
console.error('Please sign on your ledger...')
56
const tx = await contractWithSigner.tick()
67
console.log(tx.hash)
78
}

0 commit comments

Comments
 (0)