Skip to content

Commit b3c9325

Browse files
committed
Fix build after update to cashscript@0.12.0
1 parent b10041b commit b3c9325

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/TransactionBuilder.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ const TransactionBuilderPage: React.FC<Props> = ({ provider, wallets, contracts,
6868
// check for mocknet
6969
if(provider.network == "mocknet"){
7070
try{
71-
await transaction.debug()
71+
transaction.debug()
7272
alert(`Transaction evalution passed! see Bitauth IDE link in console`)
7373
} catch(error) {
7474
const errorMessage = typeof error == "string" ? error : (error as Error)?.message
7575
const cashscriptError = errorMessage.split("Bitauth")[0]
7676
console.error(errorMessage)
7777
alert(`Transaction evalution failed with the following message: \n\n${cashscriptError} See Bitauth IDE link in console`)
7878
}
79-
console.log(`Bitauth IDE link: ${transaction.bitauthUri()}`)
79+
console.log(`Bitauth IDE link: ${transaction.getBitauthUri()}`)
8080
} else {
8181
const { txid } = await transaction.send()
8282
alert(`Transaction successfully sent! see explorer link in console`)

0 commit comments

Comments
 (0)