File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
modules/utxo-staking/src/babylon Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import jsonMainnetParams from './params.mainnet.json';
1717import jsonTestnetParams from './params.testnet.json' ;
1818import { BabylonNetworkLike , toBabylonNetwork } from './network' ;
1919
20+ /** @see https://docs.babylonlabs.io/api/babylon-gRPC/params/ */
2021const BabylonParamsJSON = t . type ( {
2122 covenant_pks : t . array ( t . string ) ,
2223 covenant_quorum : t . number ,
@@ -63,7 +64,7 @@ function toVersionedParamsFromJson(jsonParams: unknown[]): VersionedStakingParam
6364 const result = t . type ( { params : BabylonParamsJSON } ) . decode ( p ) ;
6465 if ( isLeft ( result ) ) {
6566 const msg = PathReporter . report ( result ) . join ( '\n' ) ;
66- throw new Error ( `Invalid testnet params: ${ msg } ` ) ;
67+ throw new Error ( `Invalid params: ${ msg } ` ) ;
6768 }
6869 return result . right . params ;
6970 } )
You can’t perform that action at this time.
0 commit comments