Skip to content

Commit

Permalink
fix: setting issuer wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0up committed May 30, 2024
1 parent 57361b0 commit 75cfce9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions subgraph/datasources/diamond.gql.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
{ "name": "interestDen", "type": "BigDecimal!" },
{ "name": "withholdingTaxNum", "type": "BigDecimal!" },
{ "name": "withholdingTaxDen", "type": "BigDecimal!" },
{ "name": "issuer", "type": "String!" }
{ "name": "issuer", "type": "Account!" }
]
},
{
Expand Down Expand Up @@ -347,7 +347,7 @@
{ "name": "interestDen", "type": "BigDecimal!" },
{ "name": "withholdingTaxNum", "type": "BigDecimal!" },
{ "name": "withholdingTaxDen", "type": "BigDecimal!" },
{ "name": "issuer", "type": "String!" }
{ "name": "issuer", "type": "Account!" }
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions subgraph/datasources/diamond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function handleBondInitializedPart1(
ev.withholdingTaxDen = BigDecimal.fromString(
event.params.withholdingTaxDen.toString()
);
ev.issuer = Bytes.fromHexString(event.params.issuer);
ev.issuer = event.params.issuer;
const bond = fetchBond(contract, event.params.bondId.toString());
bond.coupure = event.params.coupure;
bond.withholdingTaxRate = ev.withholdingTaxNum.div(ev.withholdingTaxDen);
Expand Down Expand Up @@ -165,7 +165,7 @@ export function handleBondParametersEditedPart1(
ev.withholdingTaxDen = BigDecimal.fromString(
event.params.withholdingTaxDen.toString()
);
ev.issuer = Bytes.fromHexString(event.params.issuer);
ev.issuer = event.params.issuer;
const bond = fetchBond(contract, event.params.bondId.toString());
bond.coupure = event.params.coupure;
bond.withholdingTaxRate = ev.withholdingTaxNum.div(ev.withholdingTaxDen);
Expand Down

0 comments on commit 75cfce9

Please sign in to comment.