Skip to content

Commit

Permalink
its better to start using stdlib 6 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Dec 12, 2023
1 parent 286bc47 commit 0b5b5d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/selftest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
Expand Down

0 comments on commit 0b5b5d9

Please sign in to comment.