Comparing version 0.0.96 to 0.0.97
@@ -109,2 +109,7 @@ import * as env from "./env"; | ||
send_context_free(): void { | ||
let data = this.pack(); | ||
env.send_context_free_inline(data.dataStart, data.length); | ||
} | ||
pack(): u8[] { | ||
@@ -111,0 +116,0 @@ let enc = new Encoder(this.getSize()); |
@@ -186,2 +186,5 @@ import { check } from "./system"; | ||
let enc = new Encoder(this.getSize()); | ||
enc.pack(this.key!); | ||
enc.packNumber<u8>(<u8>this.userPresence); | ||
enc.packString(this.rpid); | ||
return enc.getBytes(); | ||
@@ -273,4 +276,6 @@ } | ||
enc.pack(this.r1!); | ||
} else {// WebAuthN | ||
} else if (this.keyType == PublicKeyType.WebAuthN) { | ||
enc.pack(this.webAuthN!); | ||
} else { | ||
check(false, "invalid Public Key type"); | ||
} | ||
@@ -277,0 +282,0 @@ return enc.getBytes(); |
@@ -50,2 +50,8 @@ import { PermissionLevel, Action } from "./action" | ||
} | ||
send_context_free(data: T): void { | ||
const permissions = [this.permissionLevel] | ||
const action = new Action(this.contract, this.action, permissions, data.pack()) | ||
action.send_context_free() | ||
} | ||
} | ||
@@ -52,0 +58,0 @@ |
{ | ||
"name": "as-chain", | ||
"version": "0.0.96", | ||
"version": "0.0.97", | ||
"description": "chain module for assemblyscript", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6768
1160415