clean console log

pull/4571/head
Joseph Izang 9 months ago committed by Aniket
parent 07e4df3b6f
commit bf9e28fce1
  1. 2
      apps/vyper/src/app/components/CompilerButton.tsx
  2. 3
      apps/vyper/src/app/utils/compiler.tsx
  3. 1
      libs/remix-ui/vyper-compile-details/src/lib/vyper-compile-details.tsx

@ -29,7 +29,7 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}:
className="btn btn-primary w-100 d-block btn-block text-break remixui_disabled mb-1 mt-3" className="btn btn-primary w-100 d-block btn-block text-break remixui_disabled mb-1 mt-3"
> >
<div className="d-flex align-items-center justify-content-center fa-1x"> <div className="d-flex align-items-center justify-content-center fa-1x">
<span className="fas fa-sync fa-pulse mr-1" /> {/* <span className="fas fa-sync fa-pulse mr-1" /> */}
<div className="text-truncate overflow-hidden text-nowrap"> <div className="text-truncate overflow-hidden text-nowrap">
<span>Compile</span> <span>Compile</span>
<span className="ml-1 text-nowrap">{contract}</span> <span className="ml-1 text-nowrap">{contract}</span>

@ -204,7 +204,6 @@ export async function compile(url: string, contract: Contract): Promise<any> {
* @param compilationResult Result returned by the compiler * @param compilationResult Result returned by the compiler
*/ */
export function toStandardOutput(fileName: string, compilationResult: any): any { export function toStandardOutput(fileName: string, compilationResult: any): any {
console.log(compilationResult)
const contractName = normalizeContractPath(fileName)[2] const contractName = normalizeContractPath(fileName)[2]
const compiledAbi = compilationResult['contractTypes'][contractName].abi const compiledAbi = compilationResult['contractTypes'][contractName].abi
const deployedBytecode = compilationResult['contractTypes'][contractName].deploymentBytecode.bytecode.replace('0x', '') const deployedBytecode = compilationResult['contractTypes'][contractName].deploymentBytecode.bytecode.replace('0x', '')
@ -294,8 +293,6 @@ export async function compileContract(contract: string, compilerUrl: string, set
}) })
const data = toStandardOutput(_contract.name, output) const data = toStandardOutput(_contract.name, output)
console.log('data', data)
console.log('what is the shape of my output', output)
remixClient.compilationFinish(_contract.name, _contract.content, data) remixClient.compilationFinish(_contract.name, _contract.content, data)
const contractName = _contract['name'] const contractName = _contract['name']
const compileResult = compileReturnType(output, contractName) const compileResult = compileReturnType(output, contractName)

@ -11,7 +11,6 @@ interface RemixUiVyperCompileDetailsProps {
export function RemixUiVyperCompileDetails({ payload, theme, themeStyle }: RemixUiVyperCompileDetailsProps) { export function RemixUiVyperCompileDetails({ payload, theme, themeStyle }: RemixUiVyperCompileDetailsProps) {
const compileResult = payload['compileResult'] ?? {} const compileResult = payload['compileResult'] ?? {}
console.log('compileResult', compileResult, payload)
const bcode = compileResult.bytecode ? compileResult.bytecode.object : '' const bcode = compileResult.bytecode ? compileResult.bytecode.object : ''
const runtimeBcode = compileResult.runtimeBytecode ? compileResult.runtimeBytecode.object : '' const runtimeBcode = compileResult.runtimeBytecode ? compileResult.runtimeBytecode.object : ''
const ir = compileResult.ir const ir = compileResult.ir

Loading…
Cancel
Save