Skip to content

Commit

Permalink
Merge branch 'master' into st/chore/remove-unused-operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf authored Jan 6, 2025
2 parents 6bc689b + f132203 commit 51802c9
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 1,510 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-donkeys-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/transactions": minor
---

chore!: remove receipt coders
8 changes: 4 additions & 4 deletions packages/account/src/providers/utils/receipts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
ReceiptTransfer,
ReceiptTransferOut,
} from '@fuel-ts/transactions';
import { ReceiptBurnCoder, ReceiptMessageOutCoder, ReceiptType } from '@fuel-ts/transactions';
import { getMintedAssetId, getMessageId, ReceiptType } from '@fuel-ts/transactions';
import { arrayify } from '@fuel-ts/utils';

import {
Expand Down Expand Up @@ -222,7 +222,7 @@ describe('assembleReceiptByType', () => {
const digest = MOCK_GQL_RECEIPT_FRAGMENT.digest;
const len = Number(MOCK_GQL_RECEIPT_FRAGMENT.len);

const messageId = ReceiptMessageOutCoder.getMessageId({
const messageId = getMessageId({
sender,
recipient,
nonce,
Expand All @@ -244,7 +244,7 @@ describe('assembleReceiptByType', () => {
it('should return a ReceiptMint when GqlReceiptType.Mint is provided', () => {
const contractId = MOCK_GQL_RECEIPT_FRAGMENT.id || '';
const subId = MOCK_GQL_RECEIPT_FRAGMENT.subId || '';
const assetId = ReceiptBurnCoder.getAssetId(contractId, subId);
const assetId = getMintedAssetId(contractId, subId);

const receipt = assembleReceiptByType({
...MOCK_GQL_RECEIPT_FRAGMENT,
Expand All @@ -263,7 +263,7 @@ describe('assembleReceiptByType', () => {
it('should return a ReceiptBurn when GqlReceiptType.Burn is provided', () => {
const contractId = MOCK_GQL_RECEIPT_FRAGMENT.id || '';
const subId = MOCK_GQL_RECEIPT_FRAGMENT.subId || '';
const assetId = ReceiptBurnCoder.getAssetId(contractId, subId);
const assetId = getMintedAssetId(contractId, subId);

const receipt = assembleReceiptByType({
...MOCK_GQL_RECEIPT_FRAGMENT,
Expand Down
309 changes: 0 additions & 309 deletions packages/transactions/src/coders/receipt.test.ts

This file was deleted.

Loading

0 comments on commit 51802c9

Please sign in to comment.