Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(dev-cli): added ao lib to loader.lua #274 #277

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

twilson63
Copy link
Contributor

This PR, adds the ao messaging library to dev-cli, and updates the init template:

local process = { _version = "0.0.2" }

function process.handle(msg, ao) 
  assert(ao.isTrusted(msg), 'ao Message is not trusted')
  
  if (msg.Data == "ping") then
    ao.send({ Target = msg.From, Data = "pong" })
  end
  
  return ao.result({
    Output = 'sent pong reply'
  })

end

return process

@twilson63 twilson63 requested a review from TillaTheHun0 January 4, 2024 22:19
@twilson63 twilson63 merged commit b699ea3 into main Jan 5, 2024
3 checks passed
@TillaTheHun0 TillaTheHun0 deleted the twilson63/chg-dev-cli-update-init-274 branch January 10, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant