Comparing version 0.0.36 to 0.0.37
@@ -44,7 +44,10 @@ import * as env from "./env"; | ||
export function getAction(type: u32, index: u32): u8[] { | ||
export function getAction(type: u32, index: u32): Action { | ||
let size = env.get_action(type, index, 0, 0); | ||
let buff = new Array<u8>(size); | ||
env.get_action(type, index, buff.dataStart, buff.length); | ||
return buff; | ||
const action = new Action() | ||
action.unpack(buff) | ||
return action; | ||
} | ||
@@ -51,0 +54,0 @@ |
{ | ||
"name": "as-chain", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "chain module for assemblyscript", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
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
1333803
3476