diff --git a/wasm/integration-test/cardano/src/lib.rs b/wasm/integration-test/cardano/src/lib.rs index 9117de724..85c1eb337 100644 --- a/wasm/integration-test/cardano/src/lib.rs +++ b/wasm/integration-test/cardano/src/lib.rs @@ -4,8 +4,8 @@ mod hermes; use hermes::{ exports::hermes::{ + http_gateway::event::{Bstr, Headers, HttpResponse}, integration_test::event::TestResult, - http_gateway::event::{Bstr, Headers, HttpResponse} }, hermes::{ cardano::{ @@ -104,7 +104,12 @@ impl hermes::exports::hermes::kv_store::event::Guest for TestComponent { } impl hermes::exports::hermes::http_gateway::event::Guest for TestComponent { - fn reply(_body: Bstr, _headers: Headers, _path: String, method: String,) -> Option { + fn reply( + _body: Bstr, + _headers: Headers, + _path: String, + _method: String, + ) -> Option { None } } @@ -113,15 +118,4 @@ impl hermes::exports::wasi::http::incoming_handler::Guest for TestComponent { fn handle(_request: IncomingRequest, _response_out: ResponseOutparam) {} } -impl hermes::exports::hermes::http_gateway::event::Guest for TestComponent { - fn reply( - _body: hermes::exports::hermes::http_gateway::event::Bstr, - _headers: hermes::exports::hermes::http_gateway::event::Headers, - _path: String, - _method: String, - ) -> Option { - None - } -} - hermes::export!(TestComponent with_types_in hermes); diff --git a/wasm/integration-test/sqlite/src/lib.rs b/wasm/integration-test/sqlite/src/lib.rs index 78c04249e..ea1af59b7 100644 --- a/wasm/integration-test/sqlite/src/lib.rs +++ b/wasm/integration-test/sqlite/src/lib.rs @@ -8,8 +8,8 @@ mod test; use hermes::{ exports::hermes::{ + http_gateway::event::{Bstr, Headers, HttpResponse}, integration_test::event::TestResult, - http_gateway::event::{Bstr, Headers, HttpResponse} }, hermes::{ cardano::api::{BlockSrc, CardanoBlock, CardanoBlockchainId, CardanoTxn}, @@ -89,23 +89,17 @@ impl hermes::exports::hermes::ipfs::event::Guest for TestComponent { } } -impl hermes::exports::hermes::http_gateway::event::Guest for TestComponent { - fn reply( - _body: hermes::exports::hermes::http_gateway::event::Bstr, - _headers: hermes::exports::hermes::http_gateway::event::Headers, - _path: String, - _method: String, - ) -> Option { - None - } -} - impl hermes::exports::hermes::kv_store::event::Guest for TestComponent { fn kv_update(_key: String, _value: KvValues) {} } impl hermes::exports::hermes::http_gateway::event::Guest for TestComponent { - fn reply(_body: Bstr, _headers: Headers, _path: String, method: String,) -> Option { + fn reply( + _body: Bstr, + _headers: Headers, + _path: String, + _method: String, + ) -> Option { None } }