mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-15 00:11:02 +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 {
|
try {
|
||||||
const score = await api.query.trust.trustScoreOf(selectedAccount.address);
|
const score = await api.query.trust.trustScores(selectedAccount.address);
|
||||||
setTrustScore(score.toString());
|
setTrustScore(score.toString());
|
||||||
console.log('✅ Trust score fetched:', score.toString());
|
console.log('✅ Trust score fetched:', score.toString());
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user