Skip to content

Commit

Permalink
Updated the constructor of CLVMObject
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed May 11, 2024
1 parent d5949fe commit 548f5ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CLVMObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export class CLVMObject implements CLVMType {
this._atom = v.atom;
this._pair = v.pair;
}
else if(v && (typeof v === "object" || typeof v === "function") && "atom" in v && "pair" in v){
this._atom = v.atom;
this._pair = v.pair;
}
else if(isTuple(v)){
this._pair = v;
this._atom = None;
Expand Down

0 comments on commit 548f5ac

Please sign in to comment.