Skip to content

Commit

Permalink
fix: conversion to Uint8Array
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvalabs-harshrastogi committed Oct 4, 2024
1 parent cb99c9c commit 0564dd8
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 13 deletions.
3 changes: 2 additions & 1 deletion packages/js-moi-logic/lib.cjs/state/accessor.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/// <reference types="node" />
import BN from "bn.js";
import { Buffer } from "buffer";
export declare class StorageKey {
private value;
constructor(value: number | string | Buffer | Uint8Array | BN);
hex(): string;
toBuffer(): Buffer;
toBuffer(): Uint8Array;
}
/**
* Represents an accessor that provides access to a slot hash.
Expand Down
2 changes: 1 addition & 1 deletion packages/js-moi-logic/lib.cjs/state/accessor.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions packages/js-moi-logic/lib.cjs/state/accessor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/js-moi-logic/lib.cjs/state/accessor.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/js-moi-logic/lib.esm/state/accessor.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/// <reference types="node" />
import BN from "bn.js";
import { Buffer } from "buffer";
export declare class StorageKey {
private value;
constructor(value: number | string | Buffer | Uint8Array | BN);
hex(): string;
toBuffer(): Buffer;
toBuffer(): Uint8Array;
}
/**
* Represents an accessor that provides access to a slot hash.
Expand Down
2 changes: 1 addition & 1 deletion packages/js-moi-logic/lib.esm/state/accessor.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/js-moi-logic/lib.esm/state/accessor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0564dd8

Please sign in to comment.