MCPcopy Create free account
hub / github.com/CashScript/cashscript / generateContractBytecodeScript

Function generateContractBytecodeScript

packages/utils/src/script.ts:153–155  ·  view source on GitHub ↗
(baseScript: Script, encodedConstructorArgs: Script)

Source from the content-addressed store, hash-verified

151}
152
153export function generateContractBytecodeScript(baseScript: Script, encodedConstructorArgs: Script): Script {
154 return [...encodedConstructorArgs.slice().reverse(), ...baseScript];
155}
156
157interface OptimiseBytecodeResult {
158 script: Script;

Callers 2

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected