bee-dashboard icon indicating copy to clipboard operation
bee-dashboard copied to clipboard

Gift card fund hexlify issue with xDAI transfer

Open Cafe137 opened this issue 2 years ago • 0 comments

Our Rpc.sendNativeTransaction implementation needs a string for the value of the transaction.

This was this.dai.toBigNumber.minus(totalCost.toString()).toString() before. I tried out the gift card fund feature with the fake-bee and even though it is a mock environment, I ran into an issue which seemed to be client side only in Bee Dashboard.

This string is provided wrongly, and the correct expression may be '0x' + this.dai.toBigNumber.minus(totalCost.toString()).toString(16), that is hexademical and leading 0x (ethers hexlify).

This should be investigated with a proper mainnet gift card fund manual test. BTW I attempted to transfer 13.9529 xDAI

Cafe137 avatar Nov 30 '22 15:11 Cafe137