This repository was archived by the owner on Nov 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ contract SocialHub is ISocialHub {
238
238
SocialTrader storage st = listOfSocialTraders[address (token)];
239
239
240
240
st.twitterHandle = _twitterHandle;
241
+ st.initialized = true ;
241
242
242
243
emit SocialTraderTokenRegistered (address (token), msg .sender );
243
244
}
@@ -247,7 +248,7 @@ contract SocialHub is ISocialHub {
247
248
function verifySocialTraderToken (address _token ) external override onlyAdmin deprecatedCheck (true ) {
248
249
SocialTrader storage st = listOfSocialTraders[_token];
249
250
250
- if (! listOfSocialTraders[_token] .initialized)
251
+ if (! st .initialized)
251
252
revert NotASocialTraderToken (_token);
252
253
253
254
st.verified = true ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ describe('SocialHub test', () => {
92
92
describe ( 'Whitelist functions' , ( ) => {
93
93
it ( 'Should add a new address to the whitelist' , async ( ) => {
94
94
await socialHub . connect ( deployer ) . addToWhitelist ( fake_traderManager . address ) ;
95
-
95
+
96
96
expect ( await socialHub . whitelisted ( fake_traderManager . address ) ) . to . equal ( true ) ;
97
97
} ) ;
98
98
it ( 'Should remove an address from the whitelist' , async ( ) => {
You can’t perform that action at this time.
0 commit comments