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

Wrong error location reporting #31

Open
thangngoc89 opened this issue Jul 30, 2018 · 0 comments
Open

Wrong error location reporting #31

thangngoc89 opened this issue Jul 30, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@thangngoc89
Copy link
Member

type network = Bitcoin | Testnet | Litecoin;

[@bs.module "bitcoinjs-lib"] [@bs.new] external new_tx_builder : network => 'a = "TransactionBuilder";

let createTxBuilder = (~network: option(network)=?, ()) => {
  let network = switch (network) {
  | Some(n) => n
  | None => Testnet
  };
  new_tx_builder(network);
};

This is OCaml's compiler acting up. This is the error message:

File "", Characters -1--1:
Error: The external function `TransactionBuilder' is not available
@thangngoc89 thangngoc89 added the bug Something isn't working label Aug 8, 2018
@thangngoc89 thangngoc89 added this to To do in Project tracking Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant