Open Fiftyw3bs opened 5 months ago
So your wallet was suppose to lose 100 of 02384095adfb494c4d3b53fad4fc44ce2da4db629c50cf627901b804.476f6c64
and gain one of 569c5e8498ee05e8651ad68b6c81f9756852e218933db722ebc72b90.436f6c6f6e794f776e6572
, are you sure that in the operation you are doing, wallet is not suppose to receive any ada?
Below is an excerpt of the off-chain code:
return $ fromJust (mustMint (GYMintScript $ colonyMintingPolicy' cSettings stepAddress treasuryAddress colony) redeemer
<$> tokenNameFromPlutus (fromMemberTypeToTokenName ColonyOwner)
<*> Just (toInteger (length creators)))
<>
foldMap mustBeSignedBy creators
<>
foldMap mustHaveOutput (GYTxOut <$> (addressFromPubKeyHash GYTestnetPreprod <$> creators)
<*> [fromRight (valueFromLovelace 0) $ valueFromPlutus colonyOwnerToken]
<*> [Just (colonyDatum, GYTxOutUseInlineDatum)]
<*> [Nothing])
<>
mustHaveOutput (mkGYTxOut feeAddress (colonyCreationFee' cSettings) colonyDatum)
colonyCreationFee'
is the 100 fakeGold
(02384095adfb494c4d3b53fad4fc44ce2da4db629c50cf627901b804.476f6c64
)
colonyOwnerToken
is 569c5e8498ee05e8651ad68b6c81f9756852e218933db722ebc72b90.436f6c6f6e794f776e6572
Could it be that change is being returned to the creator's wallet?
BTW, how do I activate traces? I've stopped seeing them since I bumped atlas to v0.4.0
Describe the bug
My test uses
withWalletBalancesCheckSimple
to validate the wallet balance after submitting transaction:But I get the following result with an extra
1667970 lovelace
Expected behavior Successful check of wallet balance.
Station (please complete the following information):