Skip to content

Commit

Permalink
Revert "0.0.3: [update] - Property for Completed txns status -> `su…
Browse files Browse the repository at this point in the history
…ccess` (#7)" (#10)

This reverts commit 67ce98f.
  • Loading branch information
Adamj1232 authored Nov 2, 2023
1 parent 433fb14 commit 8adf239
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 136 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tex-serializer",
"version": "0.0.3",
"version": "0.0.2",
"module": "dist/index.js",
"type": "module",
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export const parameterToTag: Record<string, number> = {
interactionTypes: 29,
eoa: 30,
contract: 31,
creation: 32,
success: 33
creation: 32
};

export const tagToParameter: Record<number, string> = Object.fromEntries(
Expand Down
1 change: 0 additions & 1 deletion src/deserialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const decode = (
const decodedValue = addressParser(value)
return { key, value: decodedValue }
}
case 'success':
case 'dropped':
case 'private': {
const decodedValue = boolParser(value)
Expand Down
1 change: 0 additions & 1 deletion src/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const encode = (key: string, value: unknown): Buffer | null => {
const encodedLengthAndValue = hexEncoder(value as string)
return Buffer.concat([tagBuf, encodedLengthAndValue])
}
case 'success':
case 'dropped':
case 'private': {
const encodedLengthAndValue = boolEncoder(value as boolean)
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type CompletedTransaction = {
gasPrice: number;
to: string | null;
gasUsed: number;
success: boolean;
status: string;
};

export type Transaction = MempoolTransaction | CompletedTransaction;
Expand Down
Loading

0 comments on commit 8adf239

Please sign in to comment.