Skip to content

Commit

Permalink
Merge pull request #2 from decentldotland/staging
Browse files Browse the repository at this point in the history
v0.0.3
  • Loading branch information
charmful0x authored Oct 23, 2023
2 parents 09346c5 + c11723b commit 77660d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mem-testnet",
"version": "0.0.2",
"version": "0.0.3",
"description": "testnet endpoint for MEM network",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export const guidGenerator = () => {

app.post("/", async (req: Request, res: Response) => {
try {
const { contractType, initState, input, contractSrc } = req.body;
const { contractType, initState, input, contractSrc, exmContext } =
req.body;

const buffer = new TextEncoder().encode(contractSrc);

Expand All @@ -88,6 +89,7 @@ app.post("/", async (req: Request, res: Response) => {
},
],
contractInitState: initState,
maybeExmContext: exmContext ?? null,
});
const state = memResult.state;
res.status(200).json({ state });
Expand Down

0 comments on commit 77660d7

Please sign in to comment.