UNPKG
@iam4x/bsc-scan
Version:
latest (3.3.4)
3.3.4
3.3.3
3.3.2
3.3.1
An efficient BNB and token balance scanner
iam4x/eth-scan
@iam4x/bsc-scan
/
lib
/
es
/
utils
/
abi.js
8 lines
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{toHex}
from
"@findeth/abi"
;
/** * Add 0x-prefix and ABI identifier to an encoded buffer. * *
@param
{
string
}
id
*
@param
{
Uint8Array
}
data
*
@return
{
string
} */
export
const
withId
=(
a,b
)=>
`0x
${a}
${toHex(b)}
`
;
//# sourceMappingURL=abi.js.map