You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a field costs returned on the requests that runs the code that contains the information about costs for specific libfunctions. The costs object looks as follows:
The costs should be included next to the specific statements in the Sierra code here:
For this purpose, the property statements_costs should be used. It contains a mapping statement_index => array of costs for a specific statement. If there are multiple elements in the array, they should be just listed next to each other as they represent costs for different branches. The value that should be displayed is the const_cost from the costs object.
The costs above are for the following sample code
use core::felt252;
fn main() -> felt252 {
let n = 2 + 3;
n
}
The text was updated successfully, but these errors were encountered:
There is a field
costs
returned on the requests that runs the code that contains the information about costs for specific libfunctions. Thecosts
object looks as follows:The costs should be included next to the specific statements in the Sierra code here:
For this purpose, the property
statements_costs
should be used. It contains a mappingstatement_index
=>array of costs for a specific statement
. If there are multiple elements in the array, they should be just listed next to each other as they represent costs for different branches. The value that should be displayed is theconst_cost
from thecosts
object.The costs above are for the following sample code
The text was updated successfully, but these errors were encountered: