Skip to content

Commit

Permalink
Added superTokenCustomType into superTokenObject (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
msoni89 authored Sep 22, 2021
1 parent 1cf5a8b commit a00bbc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/js-sdk/src/Framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,10 @@ module.exports = class Framework {
}

superToken = await superTokenContractType.at(superTokenAddress);
superToken.superTokenCustomType = superTokenCustomType;
this.tokens[superTokenKey] = superToken;
this.superTokens[superTokenKey] = superToken;

const underlyingTokenAddress =
await superToken.getUnderlyingToken.call();
let underlyingTokenAddress = await superToken.getUnderlyingToken.call();
if (doValidateUnderlyingToken) {
if (underlyingTokenAddress !== ZERO_ADDRESS) {
// if underlying token is not undefined and not equal to getUnderlyingToken() returned address
Expand Down

0 comments on commit a00bbc8

Please sign in to comment.