web3swift
web3swift copied to clipboard
[WIP] fix: EIP681 parsing query parameters with extra whitespace characters
What was introduced?
- Corrected parsing of query parameters of EIP681 URL if that parameter is an array and contains whitespace characters between elements, e.g.
ethereum:0x5ffc...4cc4/functionName?bytes2[]=[0xFFFF, 0x0551 , 0x2200,0x1212]
. White space between items and separators resulted in incorrect decoding. - Added encoding of
value
,gasLimit
,gasPrice
into the EIP681 when callingmakeEIP681Link() -> String?
. Example:ethereum:0x5ffc...4cc4?value=77445123&gasLimit=1234&gasPrice=789456
@JeneaVranceanu Is this PR ready to be merged?