Skip to content

Commit

Permalink
devnet bug fix on select magic code
Browse files Browse the repository at this point in the history
  • Loading branch information
radicleart committed Nov 22, 2023
1 parent 06719c1 commit 1e5e013
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"flowbite-svelte-icons": "^0.4.4",
"micro-packed": "^0.3.2",
"sats-connect": "^1.1.1",
"sbtc-bridge-lib": "^1.1.23",
"sbtc-bridge-lib": "^1.1.24",
"sockjs": "^0.3.24",
"svelte-local-storage-store": "^0.5.0",
"svelte-qrcode": "^1.0.0",
Expand Down
13 changes: 7 additions & 6 deletions src/lib/components/admin/VerifyTransactions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let allowBurn = false;
let amount = 0
let contractParameters:any;
let contract = 'ST1R1061ZT6KPJXQ7PAXPFB6ZAZ6ZWW28G8HXK9G5.clarity-bitcoin-mini-1'
if (CONFIG.VITE_NETWORK === 'devnet') contract = 'ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.clarity-bitcoin-mini'
let stxAddress:string|undefined;
let merkleTree:Array<Array<string>>
let parameters:TxMinedParameters;
Expand Down Expand Up @@ -94,8 +95,8 @@ const wasTxMined = async () => {
functionName = 'was-txid-mined'
const params = {
contractAddress: 'ST1R1061ZT6KPJXQ7PAXPFB6ZAZ6ZWW28G8HXK9G5',
contractName: 'clarity-bitcoin-mini-1',
contractAddress: contract.split('.')[0],
contractName: contract.split('.')[1],
functionName: 'was-txid-mined',
functionArgs
}
Expand All @@ -120,8 +121,8 @@ const verifyBlockHeader = async () => {
functionName = 'verify-block-header'
const params = {
contractAddress: 'ST1R1061ZT6KPJXQ7PAXPFB6ZAZ6ZWW28G8HXK9G5',
contractName: 'clarity-bitcoin-mini-1',
contractAddress: contract.split('.')[0],
contractName: contract.split('.')[1],
functionName: 'verify-block-header',
functionArgs
}
Expand Down Expand Up @@ -149,8 +150,8 @@ const verifyMerkleProof = async () => {
functionName = 'verify-merkle-proof'
const params = {
contractAddress: 'ST1R1061ZT6KPJXQ7PAXPFB6ZAZ6ZWW28G8HXK9G5',
contractName: 'clarity-bitcoin-mini-1',
contractAddress: contract.split('.')[0],
contractName: contract.split('.')[1],
functionName: 'verify-merkle-proof',
functionArgs
}
Expand Down

0 comments on commit 1e5e013

Please sign in to comment.