diff --git a/api/lib_test.go b/api/lib_test.go index 37137956..da661924 100644 --- a/api/lib_test.go +++ b/api/lib_test.go @@ -1425,11 +1425,11 @@ func TestCallCallablePoint(t *testing.T) { Type: "ty1", Attributes: types.EventAttributes{ types.EventAttribute{ - Key: "alice", + Key: "alice", Value: "101010", }, types.EventAttribute{ - Key: "bob", + Key: "bob", Value: "42", }, }, @@ -1438,11 +1438,11 @@ func TestCallCallablePoint(t *testing.T) { Type: "ty2", Attributes: types.EventAttributes{ types.EventAttribute{ - Key: "ALICE", + Key: "ALICE", Value: "42", }, types.EventAttribute{ - Key: "BOB", + Key: "BOB", Value: "101010", }, }, @@ -1484,11 +1484,11 @@ func TestCallCallablePoint(t *testing.T) { require.NoError(t, err) attrsIn := types.EventAttributes{ types.EventAttribute{ - Key: "alice", + Key: "alice", Value: "42", }, types.EventAttribute{ - Key: "bob", + Key: "bob", Value: "101010", }, } diff --git a/lib_test.go b/lib_test.go index 21e46727..95f43fba 100644 --- a/lib_test.go +++ b/lib_test.go @@ -313,11 +313,11 @@ func TestCallCallablePoint(t *testing.T) { Type: "ty1", Attributes: types.EventAttributes{ types.EventAttribute{ - Key: "alice", + Key: "alice", Value: "101010", }, types.EventAttribute{ - Key: "bob", + Key: "bob", Value: "42", }, }, @@ -326,11 +326,11 @@ func TestCallCallablePoint(t *testing.T) { Type: "ty2", Attributes: types.EventAttributes{ types.EventAttribute{ - Key: "ALICE", + Key: "ALICE", Value: "42", }, types.EventAttribute{ - Key: "BOB", + Key: "BOB", Value: "101010", }, }, @@ -359,11 +359,11 @@ func TestCallCallablePoint(t *testing.T) { require.NoError(t, err) attrsIn := types.EventAttributes{ types.EventAttribute{ - Key: "alice", + Key: "alice", Value: "42", }, types.EventAttribute{ - Key: "bob", + Key: "bob", Value: "101010", }, } diff --git a/libwasmvm/src/api.rs b/libwasmvm/src/api.rs index 883a31ae..2ecbb531 100644 --- a/libwasmvm/src/api.rs +++ b/libwasmvm/src/api.rs @@ -31,6 +31,8 @@ const MAX_REGIONS_LENGTH_OUTPUT: usize = 64 * MI; pub struct api_t { _private: [u8; 0], } + +// TODO: will be removed after solving cosmwasm#273 // This contains property about the function of callee #[derive(Serialize, Deserialize)] struct CalleeProperty { @@ -150,6 +152,7 @@ impl BackendApi for GoApi { (result, gas_info) } + // TODO: will be removed after solving cosmwasm#273 fn contract_call( &self, caller_env: &Environment, @@ -330,6 +333,7 @@ impl BackendApi for GoApi { (call_ret, gas_info) } + // TODO: will be removed after solving cosmwasm#273 fn get_wasmer_module(&self, contract_addr: &str) -> BackendResult { let cache_t_null_ptr: *mut cache_t = std::ptr::null_mut(); let mut error_msg = UnmanagedVector::default(); @@ -399,6 +403,7 @@ fn into_backend(db: Db, api: GoApi, querier: GoQuerier) -> Backend, is_caller_permission: bool,