분류 전체보기
-
Nextjs hydrate 오류Frontend/nextjs 2022. 12. 6. 15:52
이런 식으로 오류가 나온다. lazyloading을 이용해서 해결하라는 소리도 있는데, 이걸 해결하는 가장 간단한 방법은 _app.tsx에 다음과 같이 코드를 작성하는 것이다. ... useEffect(() => { setIsSSR(false); }, []); return ( {!isSSR && 내가 쓰려는 코드들... } ) ... reference https://github.com/vercel/next.js/discussions/35773
-
Error: Transaction has been reverted by the EVM:카테고리 없음 2022. 12. 6. 10:49
web3js를 쓰면 다음과 같이 오류가 나올 수 있다. 이게 당황스러운게 분명 web3js에서 자기네들이 분명 이렇게 쓰라고 나와있다. // compiled solidity source code using https://remix.ethereum.org var code = "603d80600c6000396000f3007c01000000000000000000000000000000000000000000000000000000006000350463c6888fa18114602d57005b6007600435028060005260206000f3"; // using the callback web3.eth.sendTransaction({ from: '0xde0B295669a9FD93d5F28D9Ec85E40f4c..
-
custom errorBlockChain 2022. 12. 6. 09:45
require solidity에서 보통 에러를 다룰 때 require(amount+totalSupply()