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

chore: add cross-csl pkg type #3397

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type {
} from '@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib';
import typeof * as WasmV4 from '@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib';
import typeof * as WasmMessageSigning from '@emurgo/cardano-message-signing-browser/cardano_message_signing';
import typeof * as CrossCsl from '@emurgo/cross-csl-browser';

// TODO: unmagic the constants
const MAX_VALUE_BYTES = 5000;
Expand Down Expand Up @@ -150,7 +151,7 @@ class Module {
_wasmv3: WasmV3;
_wasmv4: WasmV4;
_messageSigning: WasmMessageSigning;
_crossCsl: any;
_crossCsl: CrossCsl;

async load(flags: Array<RustModuleLoadFlags> = []): Promise<void> {
if (
Expand Down Expand Up @@ -246,7 +247,7 @@ class Module {
get WalletV4(): WasmV4 {
return this._wasmv4;
}
get CrossCsl(): any {
get CrossCsl(): CrossCsl {
return this._crossCsl;
}
WalletV4TxBuilderFromConfig(config: {
Expand Down
Loading