functionland / react-native-fula

React (JS/Native) wrapper for go-fula/mobile which creates a bridge between Fula and WNFS for React Native to enable developers create mobile native apps
MIT License
2 stars 5 forks source link

newClient method error #46

Closed ghorbani-m closed 1 year ago

ghorbani-m commented 1 year ago

When I call the newClient method I get this error:

Possible Unhandled Promise Rejection (id: 0):
Error: Cannot convert argument of type class [B
Error: Cannot convert argument of type class [B

The payload is:

 const newClient = await fula.newClient(
        keyPair.secretKey.toString(), //bytes of the privateKey of did identity in string format
        `${deviceUtils.DocumentDirectoryPath}/testconnection`, // leave empty to use the default temp one
        form.address, //This is a multi addr 
        '', 
      )
ehsan6sha commented 1 year ago

solved in v1.0.3