Skip to content

Fix: Make Utils::toHex compatible with floats#309

Open
hhun wants to merge 1 commit into
web3p:masterfrom
hhun:patch-1
Open

Fix: Make Utils::toHex compatible with floats#309
hhun wants to merge 1 commit into
web3p:masterfrom
hhun:patch-1

Conversation

@hhun

@hhun hhun commented Dec 12, 2022

Copy link
Copy Markdown

修复:使 Utils::toHex 兼容 浮点数
Fix: Make Utils::toHex compatible with floats

@hhun

hhun commented Dec 12, 2022

Copy link
Copy Markdown
Author
Utils::toHex('0.01');

Call to a member function toHex() on array

@hhun

hhun commented Oct 30, 2023

Copy link
Copy Markdown
Author

@sc0Vu

Please merge this file

\Web3\Utils::hexToBin(\Web3\Utils::toHex('100'))
\Web3\Utils::hexToBin(\Web3\Utils::toHex('0.1'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant