@stellar-expert/ui-framework 1.13.7 → 1.13.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.13.7",
3
+ "version": "1.13.8",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",
@@ -809,6 +809,7 @@ function InvokeHostFunctionView({op, compact}) {
809
809
  <OpSourceAccount op={op}/> uploaded contract code {codeReference}
810
810
  </>
811
811
  case 'createContract':
812
+ case 'createContractV2':
812
813
  const preimage = value.contractIdPreimage()
813
814
  const executable = value.executable()
814
815
  const executableType = executable.switch().name
@@ -836,6 +837,12 @@ function InvokeHostFunctionView({op, compact}) {
836
837
  }
837
838
  break
838
839
  }
840
+ if (func.arm() === 'createContractV2') {
841
+ const args = value.constructorArgs() //array
842
+ if (args.length > 0) {
843
+ contractProps = <>{contractProps} with <InvocationInfoView func="__constructor" args={args}/></>
844
+ }
845
+ }
839
846
  if (op.isEphemeral)
840
847
  return <>
841
848
  <b>Create contract</b> <AccountAddress account={contract}/> from {contractProps}<OpSourceAccount op={op}/>