allow float price (#321)
This commit is contained in:
parent
e529eee3d5
commit
929a5e2697
|
@ -552,7 +552,7 @@ program
|
|||
const { keypair } = cmd.opts();
|
||||
const solPriceStr = cmd.getOptionValue('price') || '1';
|
||||
|
||||
const lamports = parseInt(solPriceStr) * LAMPORTS_PER_SOL;
|
||||
const lamports = Math.ceil(parseFloat(solPriceStr) * LAMPORTS_PER_SOL);
|
||||
|
||||
const cacheName = program.getOptionValue('cacheName') || 'temp';
|
||||
const cachePath = path.join(CACHE_PATH, cacheName);
|
||||
|
|
Loading…
Reference in New Issue