Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U authored and github-actions[bot] committed Dec 4, 2024
1 parent 54c587e commit 3b08ab3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/configuration-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@mainsail/crypto-transaction-evm-call": "workspace:*",
"@mainsail/crypto-validation": "workspace:*",
"@mainsail/crypto-wif": "workspace:*",
"@mainsail/evm-contracts": "workspace:*",
"@mainsail/evm-consensus": "workspace:*",
"@mainsail/evm-contracts": "workspace:*",
"@mainsail/evm-gas-fee": "workspace:*",
"@mainsail/evm-service": "workspace:*",
"@mainsail/kernel": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { ServiceProvider as CoreCryptoTransaction } from "@mainsail/crypto-trans
import { ServiceProvider as CoreCryptoTransactionEvmCall } from "@mainsail/crypto-transaction-evm-call";
import { ServiceProvider as CoreCryptoValidation } from "@mainsail/crypto-validation";
import { ServiceProvider as CoreCryptoWif } from "@mainsail/crypto-wif";
import { ServiceProvider as CoreEvmGasFee } from "@mainsail/evm-gas-fee";
import { ServiceProvider as CoreEvmConsensus } from "@mainsail/evm-consensus";
import { ServiceProvider as CoreEvmGasFee } from "@mainsail/evm-gas-fee";
import { ServiceProvider as EvmService } from "@mainsail/evm-service";
import { Application } from "@mainsail/kernel";
import { ServiceProvider as CoreSerializer } from "@mainsail/serializer";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { inject, injectable, tagged } from "@mainsail/container";
import { Contracts, Identifiers } from "@mainsail/contracts";
import { EvmCallBuilder } from "@mainsail/crypto-transaction-evm-call";
import { ConsensusAbi } from "@mainsail/evm-contracts";
import { Deployer, Identifiers as EvmConsensusIdentifiers } from "@mainsail/evm-consensus";
import { ConsensusAbi } from "@mainsail/evm-contracts";
import { Utils } from "@mainsail/kernel";
import { BigNumber } from "@mainsail/utils";
import dayjs from "dayjs";
Expand Down
10 changes: 5 additions & 5 deletions packages/crypto-block/source/verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ export class Verifier implements Contracts.Crypto.BlockVerifier {
payloadBuffers.push(bytes);
}

if (!totalAmount.isEqualTo(blockData.totalAmount)) {
// Only the genesis block can have a 'totalAmount' while having no transactions.
if (block.header.height > 0 || block.header.transactions.length > 0) {
result.errors.push("Invalid total amount");
}
if (
!totalAmount.isEqualTo(blockData.totalAmount) && // Only the genesis block can have a 'totalAmount' while having no transactions.
(block.header.height > 0 || block.header.transactions.length > 0)
) {
result.errors.push("Invalid total amount");
}

if (!totalFee.isEqualTo(blockData.totalFee)) {
Expand Down
3 changes: 2 additions & 1 deletion packages/evm-consensus/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ConsensusContractService } from "./services/consensus-contract-service.
import { ValidatorSet } from "./validator-set.js";

export { Identifiers } from "./identifiers.js";
export { Deployer };

@injectable()
export class ServiceProvider extends Providers.ServiceProvider {
Expand Down Expand Up @@ -37,3 +36,5 @@ export class ServiceProvider extends Providers.ServiceProvider {
});
}
}

export { Deployer } from "./deployer.js";

0 comments on commit 3b08ab3

Please sign in to comment.