Skip to content
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

Improve plutus script failure error #671

Closed
wants to merge 2 commits into from

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Nov 1, 2024

Command failed: transaction build  Error: The following scripts have execution failures:
the script for transaction input 0 (in ascending order of the TxIds) failed with: 
Script hash: 581cc61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50
Script language: PlutusV3
Protocol version: Version 10
Script arguments: ScriptInfo: SpendingScript (TxOutRef {txOutRefId = 96704f71aca3eee50fcfcaf9fabd467b08dfa38f6d0bf58bce9fe5746d3b0d4e, txOutRefIdx = 0}) (Just (Datum {getDatum = I 0}))
TxInfo:
  TxId: 8c2a0a6267f7f2ecb300283f17bcacbcf5b32783a917c4422f159108fa333248
  Inputs: [ 96704f71aca3eee50fcfcaf9fabd467b08dfa38f6d0bf58bce9fe5746d3b0d4e!0 -> - Value {getValue = Map {unMap = [(,Map {unMap = [("",5000000)]})]}} addressed to
                                                                                    ScriptCredential: c61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50 (no staking credential)
                                                                                    with datum
                                                                                    datum hash:  03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314
                                                                                    with referenceScript
                                                                                     ]
  Reference inputs: []
  Outputs: [ - Value {getValue = Map {unMap = [(,Map {unMap = [("",2000000)]}),(c61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50,Map {unMap = [("MillarCoin",5)]})]}} addressed to
               PubKeyCredential: 0675134e2e5cc7525652feae99055743ed8056c52040923a9914afc5 (no staking credential)
               with datum
               no datum
               with referenceScript

           , - Value {getValue = Map {unMap = [(,Map {unMap = [("",1000000)]})]}} addressed to
               PubKeyCredential: 0675134e2e5cc7525652feae99055743ed8056c52040923a9914afc5 (no staking credential)
               with datum
               datum hash:  ee155ace9c40292074cb6aff8c9ccdd273c81648ff1149ef36bcea6ebb8a3e25
               with referenceScript

           , - Value {getValue = Map {unMap = [(,Map {unMap = [("",15000005000000)]})]}} addressed to
               PubKeyCredential: 7a2ac9050f5182c1755478bed1a3f6db7f7fd2b28c0734a63dc17f06 (no staking credential)
               with datum
               no datum
               with referenceScript
                ]
  Fee: 0
  Value minted: Value {getValue = Map {unMap = [(c61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50,Map {unMap = [("MillarCoin",5)]})]}}
  TxCerts: [ TxCertRegStaking (ScriptCredential c61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50) (Just 400000) ]
  Wdrl: []
  Valid range: (-∞ , +∞)
  Signatories: []
  Redeemers: [ ( Spending (TxOutRef {txOutRefId = 96704f71aca3eee50fcfcaf9fabd467b08dfa38f6d0bf58bce9fe5746d3b0d4e, txOutRefIdx = 0})
             , 0 )
             , ( Minting c61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50
             , 0 )
             , ( Certifying 0 (TxCertRegStaking (ScriptCredential c61bfa1c138524b69f378bc69504322f39289ce554d549db4d1e2b50) (Just 400000))
             , 0 ) ]
  Datums: [ ( 03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314
          , 0 )
          , ( ee155ace9c40292074cb6aff8c9ccdd273c81648ff1149ef36bcea6ebb8a3e25
          , 1 ) ]
  Votes: []
  Proposal Procedures: []
  Current Treasury Amount: 
  Treasury Donation: 
Redeemer:
  0
Script evaluation error: An error has occurred:
The machine terminated because of an error, either from a built-in function or from an explicit use of 'error'.
Script execution logs: PT5

Script base64 encoded bytes: WQ5wAQAAMjIzIjMiMyIyMjIyMjIyMjIyMjIyJTNVM1NTUyMjJTNTM1c0ZuHSAAACATASEyMjIyMjMyIhIzMAEAQAMAIyMjJTNTM1c0ZuHSAAACAbAaEyMjIyMjIyMjIyMjIyMjIyMzMzMzMzIzMjMjMiIiIiIiIiIhIzMzMz...

Changelog

- description: |
    Improve plutus script failure error
# uncomment types applicable to the change:
  type:
  - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - refactoring    # QoL changes
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.

How to trust this PR

Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@Jimbo4350
Copy link
Contributor Author

Subsumed by: #672

@Jimbo4350 Jimbo4350 closed this Nov 5, 2024
@Jimbo4350 Jimbo4350 deleted the jordan/improve-plutus-script-failure-error branch November 5, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant