compileScript

Contract variable

Slot
0x0000000000000000000000000000000000000000000000000000000000000054
Offset
0
Type
string
Value
function hexToBytes(e){for(var o=[],r=2;r<e.length;r+=2)o.push(parseInt(e.substr(r,2),16));return o}function bufferToBase64(e){for(var o="",r=new Uint8Array(e),t=r.byteLength,n=0;n<t;n++)o+=String.fromCharCode(r[n]);return window.btoa(o)}var colorSlots={};function draw(){const e=hexToBytes(svgData),o=String.fromCharCode.apply(null,e),r=document.createElement("div");r.innerHTML=o,document.body.appendChild(r);const t=document.querySelector("div svg").querySelectorAll("g");for([s,c]of t.entries()){var n=c.attributes.fill.value;null==colorSlots[n]&&(colorSlots[n]=[]),colorSlots[n].push(c)}var a=hexToBytes(rasterData),l=new Image(1500,1500);for(var[s,u]of(l.src="data:image/png;base64,"+bufferToBase64(a),document.body.appendChild(l),Object.keys(colorSlots).entries()))for(var c of colorSlots[u])c.attributes.fill.value=colors[s%colors.length]}document.addEventListener("DOMContentLoaded",draw);
Size
32 bytes
Last txn
0x7ee415bc1a70a77516a2504c466f116dc03dd51b81408800b59575a69daf4ce4
13193360
-- to --