UNPKG

truffle

Version:

Truffle - Simple development framework for Ethereum

2 lines 1.3 kB
"use strict";(self.webpackChunk_truffle_dashboard=self.webpackChunk_truffle_dashboard||[]).push([[599],{99599:function(e,s,c){c.r(s),c.d(s,{default:function(){return p}});var n=c(52322),a=c(29126),d=c(16722),r=c(89500),o=c(86831),t=c(64850),l=c(65572),i=c(97629);const u=(0,d.k)(((e,s,c)=>({alert:{color:e.colors.orange[6]}})));var g=function({decoding:e,decodingSucceeded:s,method:c}){const a=(0,i.Bq)(e),{classes:d}=u(),g=(0,i.N0)(c);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.Z,{spacing:6,children:[(0,n.jsx)(o.x,{size:"sm",color:"teal",weight:700,children:"Decoded parameters"}),!s&&(0,n.jsx)(l.Z,{size:16,className:d.alert})]}),(0,n.jsx)(t.p,{language:g,copyLabel:"Copy to clipboard",children:a})]})};var h=function({data:e}){const s=JSON.stringify(e,null,2);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.x,{size:"sm",color:"teal",weight:700,children:"Raw parameters"}),(0,n.jsx)(t.p,{language:"json",copyLabel:"Copy to clipboard",withLineNumbers:!0,children:s})]})};var p=function({lifecycle:e,showDecoding:s,decoding:c,decodingSucceeded:d}){const{params:r,method:o}=e.message.payload;return(0,n.jsxs)(a.K,{spacing:"md",px:"xl",pt:"sm",pb:"xl",children:[s&&(0,n.jsx)(g,{decoding:c,decodingSucceeded:d,method:o}),(0,n.jsx)(h,{data:r})]})}}}]); //# sourceMappingURL=599.bundle.js.map