Add loader_ prefix to LoaderTransaction methods

This commit is contained in:
Greg Fitzgerald
2018-11-06 15:44:54 -07:00
parent 6c10458b5b
commit 43bd28cdfa
3 changed files with 10 additions and 10 deletions

View File

@ -75,7 +75,7 @@ impl Loader {
check_tx_results(&bank, &tx, bank.process_transactions(&vec![tx.clone()]));
let name = String::from(loader_name);
let tx = Transaction::write(
let tx = Transaction::loader_write(
&loader,
native_loader::id(),
0,
@ -85,7 +85,7 @@ impl Loader {
);
check_tx_results(&bank, &tx, bank.process_transactions(&vec![tx.clone()]));
let tx = Transaction::finalize(&loader, native_loader::id(), mint.last_id(), 0);
let tx = Transaction::loader_finalize(&loader, native_loader::id(), mint.last_id(), 0);
check_tx_results(&bank, &tx, bank.process_transactions(&vec![tx.clone()]));
let tx = Transaction::system_spawn(&loader, mint.last_id(), 0);
@ -144,7 +144,7 @@ impl Program {
let chunk_size = 256; // Size of chunk just needs to fit into tx
let mut offset = 0;
for chunk in userdata.chunks(chunk_size) {
let tx = Transaction::write(
let tx = Transaction::loader_write(
&program,
loader.loader,
offset,
@ -160,7 +160,7 @@ impl Program {
offset += chunk_size as u32;
}
let tx = Transaction::finalize(&program, loader.loader, loader.mint.last_id(), 0);
let tx = Transaction::loader_finalize(&program, loader.loader, loader.mint.last_id(), 0);
check_tx_results(
&loader.bank,
&tx,