Skip to content

Commit

Permalink
chore: remove contract utils namespaced export
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbate committed Jan 9, 2025
1 parent a5bb56f commit 503d986
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-fishes-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/contract": minor
---

chore!: remove `ContractUtils` namespaced export
5 changes: 1 addition & 4 deletions packages/contract/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ export {
DeployContractOptions,
DeployContractResult,
} from './contract-factory';
/**
* @hidden
*/
export * as ContractUtils from './util';
export { getContractRoot, getContractStorageRoot, getContractId, hexlifyWithPrefix } from './util';
8 changes: 0 additions & 8 deletions packages/contract/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { BytesLike } from '@fuel-ts/utils';
import { chunkAndPadBytes, hexlify, concat, arrayify } from '@fuel-ts/utils';

/**
* @hidden
*
* Get the Merkle root of a contract's bytecode.
*
* @param bytecode - The bytecode of the contract.
Expand All @@ -21,8 +19,6 @@ export const getContractRoot = (bytecode: BytesLike): string => {
};

/**
* @hidden
*
* Get the Merkle root of a contract's storage slots.
*
* @param storageSlots - An array of storage slots containing key-value pairs.
Expand All @@ -37,8 +33,6 @@ export const getContractStorageRoot = (storageSlots: StorageSlot[]): string => {
};

/**
* @hidden
*
* Get the contract ID of a contract based on its bytecode, salt,
* and state root.
*
Expand All @@ -58,8 +52,6 @@ export const getContractId = (
};

/**
* @hidden
*
* Ensures that a string is hexlified.
*
* @param value - The value to be hexlified.
Expand Down

0 comments on commit 503d986

Please sign in to comment.