-
Hi All, Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
v0.7+ starts to make a deep copy of datum and redeemer during fee estimation, which will become more accurate. The error above seems to be raised when datum or redeemer were deep copied, because python doesn't know how to deep copy CBORTags, which usually appears in datum or redeemer. We need to find out which object that contained CBORTag caused this problem. Could you please add a print statement in your txbuilder file at line 1124, rerun your script, and share the output here? for f in fields(self):
if f.name not in ("context",):
print(f"Deep copying attr: {f.name}, val: {getattr(self, f.name)}") # Add this line
setattr(tmp_builder, f.name, deepcopy(getattr(self, f.name))) |
Beta Was this translation helpful? Give feedback.
-
below the (relevent) output.
what I have in my code that may be relevent to this is:
|
Beta Was this translation helpful? Give feedback.
-
tx Jerry, quickly tried your suggestion and indeed got further, but errors out on another copy:
|
Beta Was this translation helpful? Give feedback.
tx Jerry, quickly tried your suggestion and indeed got further, but errors out on another copy: