mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 07:57:55 +00:00
fix: Correct trust score storage query name
Changed from `trustScoreOf` to `trustScores` to match the actual storage item name in pallet_trust. Polkadot.js API uses storage names, not getter function names. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -62,7 +62,7 @@ export const WalletModal: React.FC<WalletModalProps> = ({ isOpen, onClose }) =>
|
||||
}
|
||||
|
||||
try {
|
||||
const score = await api.query.trust.trustScoreOf(selectedAccount.address);
|
||||
const score = await api.query.trust.trustScores(selectedAccount.address);
|
||||
setTrustScore(score.toString());
|
||||
console.log('✅ Trust score fetched:', score.toString());
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user