@@ -17,7 +17,7 @@ contract TestTokenUri is Script {
1717 // Test case 1: Plain text (should use viewer)
1818 vm.prank (address (0x1111 ));
1919 eth.createEthscription (Ethscriptions.CreateEthscriptionParams ({
20- transactionHash : keccak256 ("text1 " ),
20+ ethscriptionId : keccak256 ("text1 " ),
2121 contentUriHash: keccak256 ("data:text/plain,Hello World! " ),
2222 initialOwner: address (0x1111 ),
2323 content: bytes ("Hello World! " ),
@@ -29,7 +29,7 @@ contract TestTokenUri is Script {
2929 // Test case 2: JSON content (should use viewer with pretty print)
3030 vm.prank (address (0x2222 ));
3131 eth.createEthscription (Ethscriptions.CreateEthscriptionParams ({
32- transactionHash : keccak256 ("json1 " ),
32+ ethscriptionId : keccak256 ("json1 " ),
3333 contentUriHash: keccak256 ('data:application/json,{"p":"erc-20","op":"mint","tick":"test","amt":"1000"} ' ),
3434 initialOwner: address (0x2222 ),
3535 content: bytes ('{"p":"erc-20","op":"mint","tick":"test","amt":"1000"} ' ),
@@ -41,7 +41,7 @@ contract TestTokenUri is Script {
4141 // Test case 3: HTML content (should pass through directly)
4242 vm.prank (address (0x3333 ));
4343 eth.createEthscription (Ethscriptions.CreateEthscriptionParams ({
44- transactionHash : keccak256 ("html1 " ),
44+ ethscriptionId : keccak256 ("html1 " ),
4545 contentUriHash: keccak256 ('data:text/html,<html><body style="background:linear-gradient(45deg,#ff006e,#8338ec);color:white;font-family:monospace;display:flex;align-items:center;justify-content:center;height:100vh;margin:0"><h1>Ethscriptions Rule!</h1></body></html> ' ),
4646 initialOwner: address (0x3333 ),
4747 content: bytes ('<html><body style="background:linear-gradient(45deg,#ff006e,#8338ec);color:white;font-family:monospace;display:flex;align-items:center;justify-content:center;height:100vh;margin:0"><h1>Ethscriptions Rule!</h1></body></html> ' ),
@@ -54,7 +54,7 @@ contract TestTokenUri is Script {
5454 bytes memory redPixelPng = Base64.decode ("iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAm0lEQVR42mNgGITgPxTTxvBleTo0swBsOK0s+N8aJkczC1AMR7KAKpb8v72xAY5hFsD4lFoCN+j56ZUoliBbSoklGIZjwxRbQAjT1YK7d+82kGUBeuQii5FrAYYrL81NwCpGFQtoEUT/6RoHWAyknQV0S6ZI5RE6Jt8CZIOOHTuGgR9Fq5FkCf19QM3wx5rZKHEtsRZQt5qkhgUAR6cGaUehOD4AAAAASUVORK5CYII= " );
5555 vm.prank (address (0x4444 ));
5656 eth.createEthscription (Ethscriptions.CreateEthscriptionParams ({
57- transactionHash : keccak256 ("image1 " ),
57+ ethscriptionId : keccak256 ("image1 " ),
5858 contentUriHash: keccak256 ("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAm0lEQVR42mNgGITgPxTTxvBleTo0swBsOK0s+N8aJkczC1AMR7KAKpb8v72xAY5hFsD4lFoCN+j56ZUoliBbSoklGIZjwxRbQAjT1YK7d+82kGUBeuQii5FrAYYrL81NwCpGFQtoEUT/6RoHWAyknQV0S6ZI5RE6Jt8CZIOOHTuGgR9Fq5FkCf19QM3wx5rZKHEtsRZQt5qkhgUAR6cGaUehOD4AAAAASUVORK5CYII= " ),
5959 initialOwner: address (0x4444 ),
6060 content: redPixelPng,
@@ -66,7 +66,7 @@ contract TestTokenUri is Script {
6666 // Test case 5: CSS content (should use viewer)
6767 vm.prank (address (0x5555 ));
6868 eth.createEthscription (Ethscriptions.CreateEthscriptionParams ({
69- transactionHash : keccak256 ("css1 " ),
69+ ethscriptionId : keccak256 ("css1 " ),
7070 contentUriHash: keccak256 ("data:text/css,body { background: #000; color: #0f0; font-family: 'Courier New'; } " ),
7171 initialOwner: address (0x5555 ),
7272 content: bytes ("body { background: #000; color: #0f0; font-family: 'Courier New'; } " ),
@@ -110,4 +110,4 @@ contract TestTokenUri is Script {
110110
111111 console.log ("=== PASTE ANY OF THE ABOVE data: URIs INTO YOUR BROWSER === " );
112112 }
113- }
113+ }
0 commit comments