Skip to content

Commit

Permalink
Fixing return value of deep copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheng Lundquist committed Oct 16, 2024
1 parent 38a7a8c commit ad32469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypechain/core/contract_call_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ def __copy__(self):
out = cast(PypechainGenericError, super().__copy__())
out.message = self.message
out.data = self.data

return out

def __deepcopy__(self, memo):
out = cast(PypechainGenericError, super().__deepcopy__(memo))
out.message = self.message
out.data = copy.deepcopy(self.data)
return out


class PypechainContractCustomError(PypechainGenericError[ContractCustomError], ContractCustomError):
Expand Down

0 comments on commit ad32469

Please sign in to comment.