Skip to main content
Bumped by Community user

Since I just started to write Plutus code, I want to make some tests of Plutus.

For example, I'd like to know what exactly my [redeemer :: BuiltinData]redeemer :: BuiltinData value is. However I can't convert BuiltinData to BuiltinString which means I can't use [trace :: BuiltinString -> a -> a]trace :: BuiltinString -> a -> a to log it.

Is it possible to convert BuiltinData to BuiltinString or there is different approach to log redeemer?

Since I just started to write Plutus code, I want to make some tests of Plutus.

For example, I'd like to know what exactly my [redeemer :: BuiltinData] value is. However I can't convert BuiltinData to BuiltinString which means I can't use [trace :: BuiltinString -> a -> a] to log it.

Is it possible to convert BuiltinData to BuiltinString or there is different approach to log redeemer?

Since I just started to write Plutus code, I want to make some tests of Plutus.

For example, I'd like to know what exactly my redeemer :: BuiltinData value is. However I can't convert BuiltinData to BuiltinString which means I can't use trace :: BuiltinString -> a -> a to log it.

Is it possible to convert BuiltinData to BuiltinString or there is different approach to log redeemer?

Source Link

How to convert BuiltinData to BuiltinString?

Since I just started to write Plutus code, I want to make some tests of Plutus.

For example, I'd like to know what exactly my [redeemer :: BuiltinData] value is. However I can't convert BuiltinData to BuiltinString which means I can't use [trace :: BuiltinString -> a -> a] to log it.

Is it possible to convert BuiltinData to BuiltinString or there is different approach to log redeemer?