File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl NeuronPrecompile {
39
39
handle. try_dispatch_runtime_call ( call, RawOrigin :: Signed ( handle. caller_account_id ( ) ) )
40
40
}
41
41
42
- #[ precompile:: public( "commitWeights(uint16,uint256 )" ) ]
42
+ #[ precompile:: public( "commitWeights(uint16,bytes32 )" ) ]
43
43
#[ precompile:: payable]
44
44
pub fn commit_weights (
45
45
handle : & mut impl PrecompileHandle ,
Original file line number Diff line number Diff line change 25
25
"type": "uint16"
26
26
},
27
27
{
28
- "internalType": "uint256 ",
28
+ "internalType": "bytes32 ",
29
29
"name": "commitHash",
30
- "type": "uint256 "
30
+ "type": "bytes32 "
31
31
}
32
32
],
33
33
"name": "commitWeights",
230
230
"stateMutability": "payable",
231
231
"type": "function"
232
232
}
233
- ]
233
+ ]
Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ interface INeuron {
99
99
* @dev Commits the weights for a neuron.
100
100
*
101
101
* @param netuid The subnet to commit the weights for (uint16).
102
- * @param commitHash The commit hash for the weights (uint256 ).
102
+ * @param commitHash The commit hash for the weights (bytes32 ).
103
103
*/
104
- function commitWeights (uint16 netuid , uint256 commitHash ) external payable ;
104
+ function commitWeights (uint16 netuid , bytes32 commitHash ) external payable ;
105
105
106
106
/**
107
107
* @dev Reveals the weights for a neuron.
You can’t perform that action at this time.
0 commit comments