diff --git a/test/selftest.php b/test/selftest.php index 56a3f31..5fcc1bc 100644 --- a/test/selftest.php +++ b/test/selftest.php @@ -555,7 +555,14 @@ function getData( $wk, $key ) $t->pretest( "txAddressScript" ); { $publicKey = $wkFaucet->getPublicKey(); - $script = "sigVerify( tx.bodyBytes, tx.proofs[0], base58'$publicKey' )"; + $script = " +{-# STDLIB_VERSION 6 #-} +{-# CONTENT_TYPE DAPP #-} +{-# SCRIPT_TYPE ACCOUNT #-} + +@Verifier( tx ) +func verify() = sigVerify( tx.bodyBytes, tx.proofs[0], base58'$publicKey' ) +"; $script = $wk->compile( $script ); $tx = $wk->txAddressScript( $script['script'] );