Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ts-sdk] Allow enums with no value, add a test for TransactionData BCS #1484

Merged
merged 20 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix exports
  • Loading branch information
damirka committed Apr 19, 2022
commit f99538210deac60c168d99f970f2665d24be13b5
7 changes: 1 addition & 6 deletions sdk/typescript/src/bcs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ interface TypeInterface {
/**
* BCS implementation for Move types and few additional built-ins.
*/
class MoveBCS {
export class MoveBCS {

// Prefefined types constants
static readonly U8: string = 'u8';
Expand Down Expand Up @@ -641,11 +641,6 @@ class MoveBCS {
)
})();






export const util = {
/**
* Turn a hex string into a Uint8Array.
Expand Down
3 changes: 1 addition & 2 deletions sdk/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ export * from './signers/txn-data-serializers/txn-data-serializer';
export * from './signers/raw-signer';
export * from './signers/signer';

import { MoveBCS } from './bcs';
export { MoveBCS };
export * as BCS from './bcs';
2 changes: 1 addition & 1 deletion sdk/typescript/test/bcs/bcs.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as BCS from '../../src/bcs';
import { MoveBCS as BCS } from '../../src/bcs';
import { Base64DataBuffer as B64 } from '../../src';
import { BN } from 'bn.js';

Expand Down