Comparing version 0.0.44 to 0.0.45
@@ -53,10 +53,12 @@ import { PermissionLevel, Action } from "./action" | ||
export class InlineAction <T extends Packer> { | ||
constructor( | ||
public action: Name | ||
){} | ||
public action: Name | ||
static fromString<T extends Packer>(s: string): InlineAction<T> { | ||
return new InlineAction<T>(Name.fromString(s)) | ||
constructor(action: string){ | ||
this.action = Name.fromString(action) | ||
} | ||
static fromName<T extends Packer>(name: Name): InlineAction<T> { | ||
return new InlineAction<T>(name.toString()) | ||
} | ||
/** | ||
@@ -63,0 +65,0 @@ * Create an action with act given contract, actor, and permission |
{ | ||
"name": "as-chain", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"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
1571488
6388
9