Amend Primitives/Tooling
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export type BCHUnits = ['sats', 'bits', 'mBCH', 'BCH'];
|
||||
|
||||
/**
|
||||
* Satoshis Primitive
|
||||
*/
|
||||
@@ -11,7 +13,7 @@ export class Satoshis {
|
||||
*
|
||||
* @param satoshis {number} The satoshi amount.
|
||||
*/
|
||||
constructor(satoshis: bigint | number) {
|
||||
protected constructor(satoshis: bigint | number) {
|
||||
// Set the satoshi amount.
|
||||
this.satoshis = BigInt(satoshis);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user