Skip to content

Instantly share code, notes, and snippets.

@Neggia
Neggia / test.ts
Created July 25, 2023 21:08
Test contract getting Error: the raw script cannot match the ASM template of contract Test for this.oraclePubKey = 1441..
import {
assert,
MethodCallOptions,
ContractTransaction,
ByteString,
hash256,
method,
prop,
PubKey,
Sig,
import React from 'react';
import { sendMessageAndWaitForResponse } from '../utils/globals';
import { connect, setNetwork } from '../store/portSlice';
import store, { RootState } from '../store/store';
import { TAALSigner } from '../signers/TAALSigner';
import {
bsv,
DefaultProvider,
DefaultProviderOption,
} from 'scrypt-ts'