Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/wallet-service/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ resources:

provider:
name: aws
runtime: nodejs18.x
runtime: nodejs22.x
region: ${opt:region, 'eu-central-1'}
# In MB. This is the memory allocated for the Lambdas, they cannot use more than this
# and will break if they try.
Expand Down
8 changes: 4 additions & 4 deletions packages/wallet-service/src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const Sha256Schema = Joi.string().hex().length(64);
export const FullnodeVersionSchema = Joi.object<FullNodeApiVersionResponse>({
version: Joi.string().min(1).required(),
network: Joi.string().min(1).required(),
min_weight: Joi.number().integer().positive().required(),
min_tx_weight: Joi.number().integer().positive().required(),
min_tx_weight_coefficient: Joi.number().positive().required(),
min_tx_weight_k: Joi.number().integer().positive().required(),
min_weight: Joi.number().integer().positive().allow(0).required(),
min_tx_weight: Joi.number().integer().positive().allow(0).required(),
min_tx_weight_coefficient: Joi.number().positive().allow(0).required(),
min_tx_weight_k: Joi.number().integer().positive().allow(0).required(),
token_deposit_percentage: Joi.number().positive().required(),
reward_spend_min_blocks: Joi.number().integer().positive().required(),
max_number_inputs: Joi.number().integer().positive().required(),
Expand Down
3 changes: 2 additions & 1 deletion packages/wallet-service/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import config from '@src/config';
const bip32 = BIP32Factory(ecc);

hathorLib.network.setNetwork(config.network);
hathorLib.config.setServerUrl(config.defaultServer);

const libNetwork = hathorLib.network.getNetwork();
const hathorNetwork = {
Expand Down Expand Up @@ -254,7 +255,7 @@ export const getAddressAtIndex = (xpubkey: string, addressIndex: number): string
* @memberof Wallet
* @inner
*/
export const getAddresses = (xpubkey: string, startIndex: number, quantity: number): {[key: string]: number} => {
export const getAddresses = (xpubkey: string, startIndex: number, quantity: number): { [key: string]: number } => {
const addrMap = {};

for (let index = startIndex; index < startIndex + quantity; index++) {
Expand Down