rework funcs

This commit is contained in:
Jaremy Creechley 2023-12-11 13:19:37 -07:00
parent af51366de6
commit 12893faa44
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -142,6 +142,11 @@ impl StorageProofs {
}
}
},
rmpv::Value::String(s) => {
// directly add a (name,string) arg pair
// ie, "path" => "/some/file/path"
builder.push_input(name, decode_u256(val)?);
}
rmpv::Value::Ext(_, _) => {
// directly add a (name,u256) arg pair
builder.push_input(name, decode_u256(val)?);