swarmcity / SwarmCityDapp

Swarm City dApp FrontEnd
MIT License
28 stars 10 forks source link

Allow sending over 1000 SWT #685

Closed xardass closed 6 years ago

xardass commented 6 years ago

Allow the sending of over 1000 SWT.

Currently, when sending amount is 1000 or more, the unlock display hangs at 'wrong password'.

Console shows this:

Error: Error: [number-to-bn] while converting number 1e+21 to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "1e+21"
    at f (VM317 webpack.min.js:1)
    at Object.toTwosComplement (VM317 webpack.min.js:1)
    at o.s [as _inputFormatter] (VM317 webpack.min.js:1)
    at o.encode (VM317 webpack.min.js:1)
    at VM317 webpack.min.js:1
    at Array.map (<anonymous>)
    at m.encodeParameters (VM317 webpack.min.js:1)
    at VM317 webpack.min.js:1
    at Array.map (<anonymous>)
    at Object.l._encodeMethodABI (VM317 webpack.min.js:1)
    at HTMLElement._sign (display-complete-transaction.html:231)
    at Object.runObserverEffect [as fn] (property-effects.html:214)
    at runEffectsForProperty (property-effects.html:159)
    at runEffects (property-effects.html:125)
    at HTMLElement._propertiesChanged (property-effects.html:1703)
    at HTMLElement._flushProperties (properties-changed.html:338)
    at HTMLElement._flushProperties (property-effects.html:1551)
    at HTMLElement.__enableOrFlushClients (property-effects.html:1596)
    at HTMLElement._flushClients (property-effects.html:1571)
    at HTMLElement._propertiesChanged (property-effects.html:1699)
    at HTMLElement._flushProperties (properties-changed.html:338)
    at HTMLElement._flushProperties (property-effects.html:1551)
    at HTMLElement._invalidateProperties (property-effects.html:1523)
    at runNotifyEffects (property-effects.html:258)
    at HTMLTemplateElement._propertiesChanged (property-effects.html:1706)
    at HTMLTemplateElement._flushProperties (properties-changed.html:338)
    at HTMLTemplateElement._flushProperties (property-effects.html:1551)
    at HTMLTemplateElement._invalidateProperties (property-effects.html:1523)
xardass commented 6 years ago

@eduadiez I assigned you, because I think you understand this problem better than I do. Let me know if you prefer not to do it.