Comparing version 0.0.41 to 0.0.42
@@ -53,12 +53,10 @@ import { PermissionLevel, Action } from "./action" | ||
export class InlineAction <T extends Packer> { | ||
public action: Name | ||
constructor( | ||
public action: Name | ||
){} | ||
constructor(action: string){ | ||
this.action = Name.fromString(action) | ||
static fromString<T extends Packer>(s: string): InlineAction<T> { | ||
return new InlineAction<T>(Name.fromString(s)) | ||
} | ||
static fromName<T extends Packer>(name: Name): InlineAction<T> { | ||
return new InlineAction<T>(name.toString()) | ||
} | ||
/** | ||
@@ -65,0 +63,0 @@ * Create an action with act given contract, actor, and permission |
{ | ||
"name": "as-chain", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "chain module for assemblyscript", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1571435
6387