From 11d3a225fa19f5a81e0a4b6295cdf7ea329098df Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Sat, 9 Nov 2024 13:54:54 +0000 Subject: [PATCH] chore: bump version --- package.json | 2 +- src/index.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2de67c9..a19b56e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stxer", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "author": "Kyle Fang", "main": "dist/index.js", diff --git a/src/index.ts b/src/index.ts index 0cd9593..e50dff1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,6 +18,11 @@ import { } from '@stacks/transactions'; import { c32addressDecode } from 'c32check'; +function runTx(tx: StacksTransactionWire) { + // type 0: run transaction + return tupleCV({ type: uintCV(0), data: bufferCV(tx.serializeBytes()) }); +} + export interface SimulationEval { contract_id: string; code: string;