Update simulateTransaction rpc handling of return_data, and update docs (#24355)

* Stringify return_data program_id; also camel-case all fields

* Update simulateTransaction json-rpc docs

* Base64-encode return data in simulation RPC responses
This commit is contained in:
Tyera Eulberg
2022-04-15 01:42:08 -04:00
committed by GitHub
parent e7e7e87c93
commit f7d557d5ae
3 changed files with 46 additions and 7 deletions

View File

@ -3569,7 +3569,7 @@ pub mod rpc_full {
logs: Some(logs),
accounts: None,
units_consumed: Some(units_consumed),
return_data,
return_data: return_data.map(|return_data| return_data.into()),
},
}
.into());
@ -3679,7 +3679,7 @@ pub mod rpc_full {
logs: Some(logs),
accounts,
units_consumed: Some(units_consumed),
return_data,
return_data: return_data.map(|return_data| return_data.into()),
},
))
}