Giter Site home page Giter Site logo

qweb3.js's Introduction

qweb3.js's People

Contributors

chrisli30 avatar dwalintukan avatar fjrojasgarcia avatar frankobe avatar tt1943 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qweb3.js's Issues

I can't create Regtest wallet on Mac-Google Chrome

Hi, it basically doesn't let me type 'RegressionTesting' as my RegTest wallet name. While typing "Reg" it gets stuck there and I have to close and open Qrypto again. If I use other strings like 'SomethingElse' it does work. It seems the hash function makes some calcs while typing but is having issues hashing "R"?

image

Fix bytes32[10] to datahex method

  1. Limit each item to 64 byte chars no matter what (event name and results)
  2. Pass string for eventName to qweb3 > convert to hex > chunk to bytes[10] array

Error: Invalid Qtum address

I am trying to convert Qtum address to hex...

const { Qweb3 } = require('qweb3');

const qClient = new Qweb3('http://user:pass@localhost:13889');

async function getHexAddress(address) {
  return await qClient.getHexAddress(address);
}

getHexAddress('qKjn4fStBaAtwGiwueJf9qFxgpbAvf1xAy').then(function(result) {
   console.log(result) //will log results.
});

getHexAddress('Qh1UygQTXB5PSdkEhHnqUXGAjmzGW5Rh2d').then(function(result) {
   console.log(result) //will log results.
});

but received this error:

17e7888aa7412a735f336d2f6d784caefabb6fa3
(node:8620) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Invalid Qtum address

The 1st address is from this repository docs and it works, but 2nd one is my test address and I received Invalid Qtum address error. But this is valid address .

What is wrong?

Change provider check based on function

Obfuscation causes the return of the provider to change the name so we need to check if the rawCall function exists and it conforms to the provider interface.

change node engine

Node 9.3 is already end of life. Please upgrade to the current release 10.x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.