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

nft minting #126

Merged
merged 18 commits into from
Jun 22, 2023
Merged

nft minting #126

merged 18 commits into from
Jun 22, 2023

Conversation

aleeusgr
Copy link
Owner

@aleeusgr aleeusgr commented Jun 21, 2023

@aleeusgr
Copy link
Owner Author

aleeusgr commented Jun 21, 2023

Details

image

@aleeusgr
Copy link
Owner Author

aleeusgr commented Jun 21, 2023

Details

+ {                                                                                                                                                                                                                                                                                                                  [10/918]
  +   collateral: null,                                                                                                
  +   collateralReturn: null,                                                                                          
  +   fee: '0',                                                                                                        
  +   firstValidSlot: null,                                                                                            
  +   inputs: [                                                                                                        
  +     {                                                                                                              
  +       origOutput: {                                                                                                
  +         address: {                                                                                                 
  +           bech32: 'addr_test1vz2a83z0d5gceyghfrjqpaqu2f98evk8q6swje2c5ddqmaca2vhfl',                               
  +           hex: '6095d3c44f6d118c911748e400f41c524a7cb2c706a0e96558a35a0df7',                                       
  +         },                                                                                                         
  +         datum: null,
  +         refScript: null,
  +         value: {
  +           assets: {},
  +           lovelace: '20000000',
  +         },
  +       },
  +       txId: '0000000000000000000000000000000000000000000000000000000000000000',
  +       utxoIdx: '0',
  +     },
  +     {
  +       origOutput: {
  +         address: {
  +           bech32: 'addr_test1vz2a83z0d5gceyghfrjqpaqu2f98evk8q6swje2c5ddqmaca2vhfl',
  +           hex: '6095d3c44f6d118c911748e400f41c524a7cb2c706a0e96558a35a0df7',
  +         },                 
  +         datum: null,       
  +         refScript: null,   
  +         value: {              
  +           assets: {},         
  +           lovelace: '5000000',                                       
  +         },                      
  +       },                        
  +       txId: '0000000000000000000000000000000000000000000000000000000000000001',                                                                
  +       utxoIdx: '0',                
  +     },                                 
  +   ],                                       
  +   lastValidSlot: null,                     
  +   metadataHash: null,                      
  +   minted: {                                
  +     afef3b0817d62a979933662934a349bdd6026d12863ce1135b646797: {                                                                                                                            
  +       '6e616d65': '5',                     
  +     },                                     
  +   },                                       
  +   outputs: [                                     
  +     {                                            
  +       address: {                                       
  +         bech32: 'addr_test1vz2a83z0d5gceyghfrjqpaqu2f98evk8q6swje2c5ddqmaca2vhfl',
  +         hex: '6095d3c44f6d118c911748e400f41c524a7cb2c706a0e96558a35a0df7',
  +       },                                               
  +       datum: null,                                     
  +       refScript: null,                                 
  +       value: {                                                  
  +         assets: {                                               
  +           afef3b0817d62a979933662934a349bdd6026d12863ce1135b646797: {                                                                
  +             '6e616d65': '5',                                    
  +           },                                                    
  +         },                                                      
  +         lovelace: '2000000',                                    
  +       },                                                                   
  +     },                                                                     
  +   ],                                                                       
  +   refInputs: [],                                                           
  +   scriptDataHash: '0000000000000000000000000000000000000000000000000000000000000000',                                                                      
  +   signers: null,                                                           
  + }                                      

@aleeusgr
Copy link
Owner Author

oh shit.
Oh, yesterday I discovered I was looking at a wrong error.
My .trace() tells me that
22 (value_minted == Value::new(tt_assetclass, 1)).trace("TT1: ") &&
is falsy.

image


network.tick(10n)

const amt = 5n;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and sure enough, changing to 1n solves the problem

@aleeusgr aleeusgr merged commit ebfac19 into main Jun 22, 2023
1 check passed
@aleeusgr aleeusgr deleted the dev branch April 5, 2024 07:03
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.

None yet

1 participant