Skip to content

Commit

Permalink
FIxed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored Jul 19, 2024
1 parent 55db3e4 commit a057fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/contract/src/contract-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Contract } from '@fuel-ts/program';
import type { StorageSlot } from '@fuel-ts/transactions';
import { arrayify, isDefined } from '@fuel-ts/utils';

import { MAX_CONTACT_SIZE, getContractId, getContractStorageRoot, hexlifyWithPrefix } from './util';
import { MAX_CONTRACT_SIZE, getContractId, getContractStorageRoot, hexlifyWithPrefix } from './util';

/**
* Options for deploying a contract.
Expand Down Expand Up @@ -149,7 +149,7 @@ export default class ContractFactory {
async deployContract<TContract extends Contract = Contract>(
deployContractOptions: DeployContractOptions = {}
): Promise<DeployContractResult<TContract>> {
if (this.bytecode.length > MAX_CONTACT_SIZE) {
if (this.bytecode.length > MAX_CONTRACT_SIZE) {
throw new FuelError(
ErrorCode.CONTRACT_SIZE_EXCEEDS_LIMIT,
'Contract bytecode is too large. Max contract size is 100KB'
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { StorageSlot } from '@fuel-ts/transactions';
import { chunkAndPadBytes, hexlify, concat, arrayify } from '@fuel-ts/utils';

// Max contract size in bytes is 100KB
export const MAX_CONTACT_SIZE = 102400;
export const MAX_CONTRACT_SIZE = 102400;

/**
* @hidden
Expand Down

0 comments on commit a057fa0

Please sign in to comment.