Skip to content

Commit 3d0e82a

Browse files
authored
Revert "chore: Add costUnits to transaction classes (#3748)" (#3749)
This reverts commit 720a428.
1 parent 720a428 commit 3d0e82a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/connection.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,6 @@ export type ParsedTransactionMeta = {
10931093
loadedAddresses?: LoadedAddresses;
10941094
/** The compute units consumed after processing the transaction */
10951095
computeUnitsConsumed?: number;
1096-
/** The cost units consumed after processing the transaction */
1097-
costUnits?: number;
10981096
};
10991097

11001098
export type CompiledInnerInstruction = {
@@ -1126,8 +1124,6 @@ export type ConfirmedTransactionMeta = {
11261124
loadedAddresses?: LoadedAddresses;
11271125
/** The compute units consumed after processing the transaction */
11281126
computeUnitsConsumed?: number;
1129-
/** The cost units consumed after processing the transaction */
1130-
costUnits?: number;
11311127
};
11321128

11331129
/**
@@ -2373,7 +2369,6 @@ const ConfirmedTransactionMetaResult = pick({
23732369
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
23742370
loadedAddresses: optional(LoadedAddressesResult),
23752371
computeUnitsConsumed: optional(number()),
2376-
costUnits: optional(number()),
23772372
});
23782373

23792374
/**
@@ -2399,7 +2394,6 @@ const ParsedConfirmedTransactionMetaResult = pick({
23992394
postTokenBalances: optional(nullable(array(TokenBalanceResult))),
24002395
loadedAddresses: optional(LoadedAddressesResult),
24012396
computeUnitsConsumed: optional(number()),
2402-
costUnits: optional(number()),
24032397
});
24042398

24052399
const TransactionVersionStruct = union([literal(0), literal('legacy')]);

0 commit comments

Comments
 (0)