Options for upgrading the bridge contract to a new WASM implementation via OnboardingBridgeSDK.upgrade.
Admin only. The new WASM hash must already be uploaded to the network with stellar contract install. All instance storage (admin, fees, etc.) is preserved across the upgrade.
stellar contract install
await sdk.upgrade({ newWasmHash: 'abcdef0123456789...' }, adminKeypair); Copy
await sdk.upgrade({ newWasmHash: 'abcdef0123456789...' }, adminKeypair);
32-byte WASM hash as a lowercase hex string (64 characters). Obtained from stellar contract install --network <net> ....
stellar contract install --network <net> ...
Options for upgrading the bridge contract to a new WASM implementation via OnboardingBridgeSDK.upgrade.
Admin only. The new WASM hash must already be uploaded to the network with
stellar contract install. All instance storage (admin, fees, etc.) is preserved across the upgrade.Example