-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Upgradable::up_stage_code uses borsh parameter serialization:
However, this isn’t documented:
So most likely users will assume default json parameter serialization and then wonder why deserialization fails when calling up_stage_code in a transaction.
Either we should document this or change up_stage_code to use json serialization. If I remember correctly, this is the only method provided by near-plugins which does not use json parameter serialization. Even if less efficient, perhaps we should switch to json here for a consistent and intuitive API?
Edit: Another advantage of json is that it allows using near-cli to stage code, which is problematic with borsh as described here (section up_stage_code).
cc @birchmd
Metadata
Metadata
Assignees
Labels
No labels