MCPcopy Create free account
hub / github.com/circlefin/arc-node / addressToBytes32

Function addressToBytes32

scripts/genesis/types.ts:111–111  ·  view source on GitHub ↗
(address: Address)

Source from the content-addressed store, hash-verified

109
110export const addressToBigInt = (address: Address): bigint => fromHex(address, 'bigint')
111export const addressToBytes32 = (address: Address): Bytes32 => toHex(addressToBigInt(address), { size: 32 })
112
113/**
114 * Convert a value to a bytes32 value.

Calls 1

addressToBigIntFunction · 0.85

Tested by 1

resolveFiatTokenRolesFunction · 0.72