* Encodes the result data (e.g. from an ``eth_call``) for the * specified function (see [[getFunction]] for valid values * for %%fragment%%) with %%values%%. * * This is generally not used by most developers, unless trying to mock * a result from a Contract.
(fragment, values)
| 816 | * a result from a Contract. |
| 817 | */ |
| 818 | encodeFunctionResult(fragment, values) { |
| 819 | if (typeof (fragment) === "string") { |
| 820 | const f = this.getFunction(fragment); |
| 821 | assertArgument(f, "unknown function", "fragment", fragment); |
| 822 | fragment = f; |
| 823 | } |
| 824 | return hexlify(this.#abiCoder.encode(fragment.outputs, values || [])); |
| 825 | } |
| 826 | /* |
| 827 | spelunk(inputs: Array<ParamType>, values: ReadonlyArray<any>, processfunc: (type: string, value: any) => Promise<any>): Promise<Array<any>> { |
| 828 | const promises: Array<Promise<>> = [ ]; |
no test coverage detected