You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.
just happened to wonder about this specific method after reading through the Rust contract that implements the open web concept here: near/near-sdk-rs#66
pubfnpost_message(&mutself,app_id:AppId,message:Message){verify_app_id(&app_id);self.verify_app_active(&app_id);letmut q = self.messages.get(&app_id).unwrap_or_else(|| {letmut vec_id = Vec::with_capacity(app_id.len() + 4);
vec_id.extend_from_slice(b":m:");
vec_id.extend_from_slice(app_id.as_bytes());
vec_id.push(b':');Vector::new(vec_id)});
q.push(&WrappedMessage{sender: env::predecessor_account_id(),/// <-- HERE it is
message,time: env::block_timestamp(),});self.messages.insert(&app_id,&q);}
if what i've written above makes sense, then more generally, it seems like we could use a test that simply checks for parity between the namespace runtime_api and some implementation in near-runtime-ts. if a matching method is not found we can at least flag it as a warning or create an issue on the repo but not sure what makes sense here
The text was updated successfully, but these errors were encountered:
unless i'm misunderstanding something, it seems like
predecessor_account_id
can be easily surfaced into thecontext
object exposed bynear-runtime-ts
near-runtime-ts/assembly/runtime_api.ts
Lines 28 to 29 in 4d7247f
but it is not
https://github.com/nearprotocol/near-runtime-ts/blob/master/assembly/contract.ts
just happened to wonder about this specific method after reading through the Rust contract that implements the open web concept here: near/near-sdk-rs#66
if what i've written above makes sense, then more generally, it seems like we could use a test that simply checks for parity between the
namespace runtime_api
and some implementation innear-runtime-ts
. if a matching method is not found we can at least flag it as a warning or create an issue on the repo but not sure what makes sense hereThe text was updated successfully, but these errors were encountered: