Open WyattMufson opened 5 years ago
Also it looks like all of the non-typed portions of the script builder can be completely removed. pushContractInvoke
is only being called by buildNEP5TransferScript
which is not being used anywhere. This will allow for removing a large chunk of the script builder (I'm doing the same thing for neovm-utils
)
if we change this can we remove pushData, buildNep5TransferScript, and pushContractInvoke from the project as well in this PR
Sure thing. Are you only using the typed functions now?
Yes i believe only typed functions are necessary as every contract invoke should filter in as a DAPI request structure.
I'm talking with Apisit about how to fix https://github.com/O3Labs/OzoneWalletIOS/blob/decf61d1ccbecca725cd4d803781b746ba9e363c/O3/New%20Group/Clients/Wallet.swift#L529
where script.count
is bigger than 255.
@saltyskip removed the rest. Didn't find a solution for when script.count
is too big for UInt8
You don't need to call
pushData
on aString
since it will just end up callingpushHexString
. This change just makes it a little clearer how theScriptBuilder
works.