Skip to content

Commit

Permalink
chore(lua-examples): bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Jan 2, 2024
1 parent 65ca69d commit d336088
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
39 changes: 17 additions & 22 deletions lua-examples/hello-world/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lua-examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"dependencies": {
"@permaweb/ao-loader": "^0.0.12",
"@permaweb/ao-sdk": "^0.0.20"
"@permaweb/ao-sdk": "^0.0.22"
},
"devDependencies": {
"heapdump": "^0.3.15"
Expand Down
4 changes: 3 additions & 1 deletion lua-examples/hello-world/readResult.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { connect } from '@permaweb/ao-sdk'

const MESSAGE_ID = process.env.MESSAGE_ID
const PROCESS_ID = process.env.PROCESS_ID

if (!MESSAGE_ID) throw new Error('MESSAGE_ID env var is required, so as to know which process is receiving the message')
if (!PROCESS_ID) throw new Error('PROCESS_ID env var is required, so as to know which process is receiving the message')

const { result } = connect()

await result({ message: MESSAGE_ID })
await result({ message: MESSAGE_ID, process: PROCESS_ID })
.then(console.log)
.catch(console.error)

0 comments on commit d336088

Please sign in to comment.