MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / toArray

Function toArray

yarn-project/txe/src/util/encoding.ts:81–83  ·  view source on GitHub ↗
(objs: Fr[])

Source from the content-addressed store, hash-verified

79}
80
81export function toArray(objs: Fr[]): ForeignCallArray {
82 return objs.map(obj => obj.toString());
83}
84
85export function toSingleOrArray(value: Fr | Fr[]) {
86 return Array.isArray(value) ? value.map(toSingle) : toSingle(value);

Calls 2

toStringMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected