wowok_agent 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/call/arbitration.ts +1 -0
- package/src/call/guard.ts +0 -3
- package/src/call/personal.ts +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
package/src/call/arbitration.ts
CHANGED
package/src/call/guard.ts
CHANGED
|
@@ -64,7 +64,6 @@ export class CallGuard extends CallBase {
|
|
|
64
64
|
const bytes = (concatenate(Uint8Array, ...output) as Uint8Array);
|
|
65
65
|
const txb = new TransactionBlock();
|
|
66
66
|
|
|
67
|
-
console.log(bytes)
|
|
68
67
|
const obj = txb.moveCall({
|
|
69
68
|
target: Protocol.Instance().guardFn('new') as FnCallType,
|
|
70
69
|
arguments: [txb.pure.string(this.data.description), txb.pure.vector('u8', [].slice.call(bytes.reverse()))],
|
|
@@ -106,13 +105,11 @@ export class CallGuard extends CallBase {
|
|
|
106
105
|
const buildNode = (guard_node:GuardNode, type_required:ValueType | 'number' | 'variable', table:GuardConst[], output:Uint8Array[]) => {
|
|
107
106
|
const node: any = guard_node as any;
|
|
108
107
|
if (node?.identifier !== undefined) {
|
|
109
|
-
console.log(node)
|
|
110
108
|
const f = table.find(v=>v.identifier === node.identifier);
|
|
111
109
|
if (f) {
|
|
112
110
|
checkType(f.value_type, type_required, node);
|
|
113
111
|
output.push(Bcs.getInstance().ser(ValueType.TYPE_U8, ContextType.TYPE_CONSTANT));
|
|
114
112
|
output.push(Bcs.getInstance().ser(ValueType.TYPE_U8, node.identifier))
|
|
115
|
-
console.log(2)
|
|
116
113
|
} else {
|
|
117
114
|
ERROR(Errors.InvalidParam, 'node identifier - ' + node.toString());
|
|
118
115
|
}
|
package/src/call/personal.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface CallPersonal_Data {
|
|
|
16
16
|
close?: boolean; // close a personal resource
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class
|
|
19
|
+
export class CallPersonal extends CallBase {
|
|
20
20
|
data: CallPersonal_Data;
|
|
21
21
|
constructor(data: CallPersonal_Data) {
|
|
22
22
|
super();
|