fix: fix ContractError prototype
The prototype of ContractError should be set appropriately. Otherwise, it is impossible to distinguish these errors from others with instanceof
The prototype of ContractError should be set appropriately. Otherwise, it is impossible to distinguish these errors from others with instanceof