File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/wasm-dpp/src/data_contract/state_transition
data_contract_create_transition
data_contract_update_transition Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ impl DataContractCreateTransitionWasm {
6161 ) -> Result < DataContractWasm , JsValue > {
6262 // Use provided protocol version or latest if not specified
6363 let platform_version = if let Some ( version) = protocol_version {
64- PlatformVersion :: get ( version) . with_js_error ( ) ?
64+ PlatformVersion :: get ( version)
65+ . map_err ( ProtocolError :: PlatformVersionError )
66+ . with_js_error ( ) ?
6567 } else {
6668 PlatformVersion :: latest ( )
6769 } ;
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ impl DataContractUpdateTransitionWasm {
6262 ) -> Result < DataContractWasm , JsValue > {
6363 // Use provided protocol version or latest if not specified
6464 let platform_version = if let Some ( version) = protocol_version {
65- PlatformVersion :: get ( version) . with_js_error ( ) ?
65+ PlatformVersion :: get ( version)
66+ . map_err ( ProtocolError :: PlatformVersionError )
67+ . with_js_error ( ) ?
6668 } else {
6769 PlatformVersion :: latest ( )
6870 } ;
You can’t perform that action at this time.
0 commit comments