Skip to content

Commit

Permalink
fix meta error log
Browse files Browse the repository at this point in the history
  • Loading branch information
fazzatti committed Aug 15, 2024
1 parent 53c5339 commit 15b5053
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions frontend/src/app/core/pages/contracts-create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
TOKEN_DECIMALS,
} from 'soroban/contracts-service'
import { StellarPlusError } from 'stellar-plus/lib/stellar-plus/error'
import { ConveyorBeltErrorMeta } from 'stellar-plus/lib/stellar-plus/error/helpers/conveyor-belt'
import { CertificateOfDepositClient } from 'stellar-plus/lib/stellar-plus/soroban/contracts/certificate-of-deposit'
import { AutoRestorePlugin } from 'stellar-plus/lib/stellar-plus/utils/pipeline/plugins/simulate-transaction'

Expand Down Expand Up @@ -62,7 +63,13 @@ export const ContractsCreate: React.FC = () => {
if (!contractId) {
await token.wrapAndDeploy(opexTxInvocation).catch(error => {
console.error('Error wrapping and deploying token', error)
console.log('Details', (error as StellarPlusError).meta)
console.log('Details', error as StellarPlusError)
console.log('Meta', (error as StellarPlusError).meta)
console.log(
'Conveyor',
((error as StellarPlusError).meta?.conveyorBeltErrorMeta as any)
.meta
)
console.log(
'Details',
(error as StellarPlusError).meta?.sorobanSimulationData
Expand Down Expand Up @@ -118,7 +125,13 @@ export const ContractsCreate: React.FC = () => {

await codClient.deploy(opexTxInvocation).catch(error => {
console.error('Error deploying contract', error)
console.error('Details', (error as StellarPlusError).meta)
console.log('Details', error as StellarPlusError)
console.log('Meta', (error as StellarPlusError).meta)
console.log(
'Conveyor',
((error as StellarPlusError).meta?.conveyorBeltErrorMeta as any).meta
)

throw new Error('Error deploying contract')
})
await codClient
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/soroban/contracts-service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { STELLAR_NETWORK, WASM_HASH, vcRpcHandler } from './constants'

export const TOKEN_DECIMALS = 10000000
export const BUMP_FEE = '100000000'
export const INNER_FEE = '1000000'
export const INNER_FEE = '10000000'
const SECONDS_IN_DAY = 86400
const VALUE_TO_PERCENTAGE = 100
const TIMEOUT = 45
Expand Down

0 comments on commit 15b5053

Please sign in to comment.