neo-one
neo-one copied to clipboard
Fix how our contracts are called
- Need to make sure we’re calling contracts correctly in our client ScriptBuilder
- If sticking with current hack-y version:
- All method offsets are set to zero (improper)
- Every method should now accept two args: 1 byte string for method, and one array for actual args
- Made edits in smartContract for.ts and linkedSmartContract for.ts
- If changing to how it should be done
- Remove jump table. Method lookup is by manifest offset
- Method offsets should be where the method actually starts and not jump table location
- Every method needs to start with INITSLO
Change line 250 in createSmartContract.ts
and line 216-218:
And in line 227 in LocalUserAccountProvider.ts
And line 403 (and probably others) in common.ts
:
And here in common.ts
and ManifestSmartContractProcessor.ts


Also revert #2544