The predicate and script blob deployment logic currently lives in ContractFactory.deployAsBlobTxForScript. We should move it out of there and into a function that can then be used in e.g. new Predicate(...).deployAsBlob() and new Script(...).deployAsBlob(). This deployAsBlob method can then return a new Predicate/Script instance with the updated bytecode and abi.
The predicate and script blob deployment logic currently lives in
ContractFactory.deployAsBlobTxForScript
. We should move it out of there and into a function that can then be used in e.g.new Predicate(...).deployAsBlob()
andnew Script(...).deployAsBlob()
. ThisdeployAsBlob
method can then return a newPredicate
/Script
instance with the updated bytecode and abi.