Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Dec 13, 2024
1 parent c7a56a1 commit bbaf4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api-sync/source/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class Restore {
...(username ? { username } : {}),
}
: {}),
...(legacyAttributes
...(legacyAttributes && Object.keys(legacyAttributes).length > 0
? {
isLegacy: true,
...(legacyAttributes.secondPublicKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export class GenesisBlockGenerator extends Generator {
options.snapshot?.stateHash ??
"0000000000000000000000000000000000000000000000000000000000000000",
timestamp: dayjs(options.epoch).valueOf(),
totalAmount: totals.amount,
totalAmount: options.snapshot ? Utils.BigNumber.make(options.premine) : totals.amount,
totalFee: totals.fee,
totalGasUsed: totals.gasUsed,
transactions: transactionData,
Expand Down

0 comments on commit bbaf4cf

Please sign in to comment.