-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wallet] consolidating #46
base: main
Are you sure you want to change the base?
Conversation
[ico.funds.reception] fetchAddressState and plan
719d786
to
f506062
Compare
, validitySlotRangeMaybe = Nothing | ||
, tokenSupplyChangesMaybe = Nothing | ||
, ..} | ||
<> ["--invalid-hereafter", show (synSlotAsInt + 600)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you adding ["--invalid-hereafter", show (synSlotAsInt + 600)])
?
@@ -129,7 +140,7 @@ instance ToCardanoCLIOptions TxOut where | |||
[ "--tx-out" , coerce address <> " " <> (T.unpack . toCLI) value | |||
, "--tx-out-datum-hash" , coerce datumHash] | |||
toCardanoCLIOptions ToWallet {..} = | |||
[ "--tx-out" , coerce address <> " " <> (T.unpack . toCLI) value] | |||
[ "--tx-out" , coerce address <> "+" <> (T.unpack . toCLI) value] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should not add a "+" here, the format is "address x lovelace + y policyhash.tokenName" , something like that
return $ rmdups currencyList | ||
|
||
askSelectUTxOByType :: (MonadIO m, MonadReader Environment m) => Wallet -> m (Maybe [UTxO]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
askUTxOByAssetClass :: (MonadIO m, MonadReader Environment m) => Wallet -> m (Maybe (NonEmpty UTxO))
>>= \wallets -> do | ||
printLn "Select the minter wallet : " | ||
askToChooseAmongGivenWallets wallets | ||
tokensChoosen <- askSelectUTxOByType wallet >>= whenNothingThrow NoFundsToBeRetrieved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whenNothingThrow NoTokensFound
(txFolder, rawTx ) <- (\a-> (a,a <> "tx.raw")) <$> getFolderPath Transactions | ||
aGivenTxOutRef <- txOutRef <$> (selectBiggestStrictlyADAsNotCollateral wallet >>= whenNothingThrow NoADAInWallet) | ||
|
||
buildRaw "0" (toCardanoCLIOptions TxBuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you using buildRaw here ?
getCurrency :: UTxO -> (CurrencySymbol, TokenName) | ||
getCurrency utxo = (currency, _tokenName) | ||
where (currency, _tokenName, _) = getTokenFrom utxo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getTokenFrom should be changed
@devfull can we close this ? |
No description provided.