Now I am learning Haskell & Plutus to write smart contract.
I can cost for your help to learn cardano smart contract.
So I am trying to compile & deploy on testnet with this project.
I had installed all environments on my Ubuntu & MacOS.
The Glorious Glasgow Haskell Compilation System, version 8.10.7
cabal-install version 3.6.2.0
compiled using version 3.6.2.0 of the Cabal library
cardano-node 1.29.0 - linux-x86_64 - ghc-8.10
git rev 4c59442958072657812c6c0bb8e0b4ab85ce1ba2
cardano-cli 1.29.0 - linux-x86_64 - ghc-8.10
git rev 4c59442958072657812c6c0bb8e0b4ab85ce1ba2
nix (Nix) 2.8.0
cardano-wallet version
v2022-04-27 (git revision: 0000000000000000000000000000000000000000)
Installed Daedalus wallet
At first I command on terminal this cmd.
export CARDANO_NODE_SOCKET_PATH=$HOME/Cardano/db/node.socket
and run cardano-node on my local. After it I command cabal run integration-tests.
Up to date
{
“epoch”: 8,
“hash”: “48d8e744b97ff9c1288555640c839162f4e986d11a1f3d11d4457c0b50bd24b3”,
“slot”: 178977,
“block”: 177935,
“era”: “Byron”,
“syncProgress”: “3.98”
}
wrote NFT validator to file /tmp/swap3575763-0.plutus
wrote NFT validator to file /tmp/alwaysSucceeds3575763-1.plutus
Plutus script address: addr_test1wz5d96c7agqnynvpll2ytpssm7tgl05a8vfnzngpg5dr00gss36pg
Plutus script address: addr_test1wrxydyy3ps4rh5amg3p2gnjhacwglensysu9c5pulyallls7q0zwm
Command failed: query protocol-parameters Error: This query cannot be used for the Byron era
integration-tests: callProcess: cardano-cli “query” “protocol-parameters” “–out-file” “/tmp/protocol-params3575763-2.json” “–testnet-magic” “1097911063” (exit 1): failed
export CARDANO_NODE_SOCKET_PATH=/home/bluesky/.local/share/Daedalus/testnet/cardano-node.socket
Up to date
{
“epoch”: 208,
“hash”: “5ed55cbf6fd25d869671418370f2a24541872d9b8025b267b723d40b0c0abec8”,
“slot”: 59540218,
“block”: 3591914,
“era”: “Alonzo”,
“syncProgress”: “100.00”
}
wrote NFT validator to file /tmp/swap3577493-0.plutus
wrote NFT validator to file /tmp/alwaysSucceeds3577493-1.plutus
Plutus script address: addr_test1wz5d96c7agqnynvpll2ytpssm7tgl05a8vfnzngpg5dr00gss36pg
Plutus script address: addr_test1wrxydyy3ps4rh5amg3p2gnjhacwglensysu9c5pulyallls7q0zwm
single offer
can be purchased FAILED [1]
can be cancelled by owner FAILED [2]
buyer counter offers
seller can accept offer FAILED [3]
multiple offers
from same seller
can be cancelled in bulk FAILED [4]
for same offer
cannot be shorted FAILED [5]
from multiple sellers
that have no expiration
cannot be cancelled in bulk FAILED [6]
can be purchased in bulk FAILED [7]
Can’t be purchased if another script is an input FAILED [8]
Failures:
integration-tests/Main.hs:129:7:
- single offer can be purchased
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/single offer/can be purchased/”
integration-tests/Main.hs:131:7:- single offer can be cancelled by owner
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/single offer/can be cancelled by owner/”
integration-tests/Main.hs:135:11:- single offer, buyer counter offers, seller can accept offer
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/single offer/buyer counter offers/seller can accept offer/”
integration-tests/Main.hs:141:9:- multiple offers, from same seller, can be cancelled in bulk
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/multiple offers/from same seller/can be cancelled in bulk/”
integration-tests/Main.hs:146:11:- multiple offers, from same seller, for same offer, cannot be shorted
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/multiple offers/from same seller/for same offer/cannot be shorted/”
integration-tests/Main.hs:182:11:- multiple offers, from multiple sellers, that have no expiration, cannot be cancelled in bulk
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/multiple offers/from multiple sellers/that have no expiration/cannot be cancelled in bulk/”
integration-tests/Main.hs:185:11:- multiple offers, from multiple sellers, that have no expiration, can be purchased in bulk
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/multiple offers/from multiple sellers/that have no expiration/can be purchased in bulk/”
integration-tests/Main.hs:188:11:- multiple offers, from multiple sellers, that have no expiration, Can’t be purchased if another script is an input
uncaught exception: ErrorCall
Prelude.foldl1: empty list
To rerun use: --match “/multiple offers/from multiple sellers/that have no expiration/Can’t be purchased if another script is an input/”
Randomized with seed 1266991612
Finished in 17.3217 seconds
8 examples, 8 failures
Please help me.
skype : live:.cid.8c36cbfe88725f27
telegram : Telegram: Contact @programlucky