본문 바로가기
프로그래밍/solidity

솔리디티, 리믹스 에러 code 4001, code 32603, code 32000

by 한코코 2022. 5. 26.

1.   code 4001, 메타마스크 거래를 취소할때 발생하는 에러

MetaMask - RPC 오류: MetaMask Tx 서명:

사용자가 트랜잭션 서명을 거부했습니다.

{코드: 4001, 메시지: 'MetaMask Tx 서명: 사용자가 트랜잭션 서명을 거부했습니다.'}

MetaMask - RPC Error:
MetaMask Tx Signature: User denied transaction signature.
{code: 4001, message: 'MetaMask Tx Signature: User denied transaction signature.'}​

 

 

 

2.   code -32603

MetaMask - RPC 오류: 내부 JSON-RPC 오류입니다. {코드: -32603, 메시지: '내부 JSON-RPC 오류입니다.

MetaMask - RPC Error:
Internal JSON-RPC error.
{code: -32603, message: 'Internal JSON-RPC error.

 

 

 

3.   code -32000

트랜잭션 처리 중 VM 예외: 되돌리기

"message": "VM Exception while processing transaction: revert",
"code": -32000,

1) revert 오류는 require문 사용시에 조건에 맞지 않아 오류가 난다

댓글