-
Notifications
You must be signed in to change notification settings - Fork 66
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
enhancement: implement decoding for data in MessageOut
#611
enhancement: implement decoding for data in MessageOut
#611
Conversation
ff47f70
to
fae1b1f
Compare
6d37539
to
075f551
Compare
@@ -2,7 +2,7 @@ namespace: fuel_indexer_test | |||
graphql_schema: packages/fuel-indexer-tests/components/indices/fuel-indexer-test/schema/fuel_indexer_test.graphql | |||
abi: packages/fuel-indexer-tests/contracts/fuel-indexer-test/out/debug/fuel-indexer-test-abi.json | |||
start_block: 1 | |||
contract_id: fuel1u47xjlucyjf2hkn874675fgdfue0vmyne72ucch74jcgu457rluq236j5e | |||
contract_id: fuel1awqdupn0smn4m455xvzc5vlgds22e3pz7yrpw0gtnh9awfn39plsrzkn6p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏽
@@ -37,7 +37,7 @@ pub mod defaults { | |||
// the node provider for E2E tests, but spawning a task that is supposed | |||
// to return the contract ID won't give us the ID until the task is completed. | |||
pub const CURRENT_TEST_CONTRACT_ID_STR: &str = | |||
"fuel1u47xjlucyjf2hkn874675fgdfue0vmyne72ucch74jcgu457rluq236j5e"; | |||
"fuel1awqdupn0smn4m455xvzc5vlgds22e3pz7yrpw0gtnh9awfn39plsrzkn6p"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works per the testing steps
Closes #300.
Changelog
MessageOut
receiptstrigger_messageout()
in Sway contractMessageOut
receiptTesting Plan
Added asserts to
MessageOut
E2E test to ensure that example message entity is stored. You can run the test and verify that it works by compiling the index and runningcargo test --features e2e,postgres,pg-embed-skip test_can_trigger_and_index_messageout_event_postgres
.Manual Steps
fuel-indexer-test
WASM module.cargo run --bin fuel-node
.cargo run --bin web-api
.cargo run --bin fuel-indexer -- run --manifest packages/fuel-indexer-tests/assets/fuel_indexer_test.yaml
.MessageOut
data from the contract:curl -X POST http://127.0.0.1:8000/messageout
.messageout
andmessageentity
tables.