From d2dc585974ea5814b52a61dfc85ccdfdd939a95d Mon Sep 17 00:00:00 2001 From: jackcmay Date: Thu, 8 Nov 2018 09:03:48 -0800 Subject: [PATCH] Update wallet to pass full ELFs (#1738) --- rfcs/rfc-006-budget-contract-language.md | 8 ++++++++ src/wallet.rs | 16 ++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/rfcs/rfc-006-budget-contract-language.md b/rfcs/rfc-006-budget-contract-language.md index dd47bdd4a4..7ec6fde9ff 100644 --- a/rfcs/rfc-006-budget-contract-language.md +++ b/rfcs/rfc-006-budget-contract-language.md @@ -117,6 +117,14 @@ $ solana-wallet send-timestamp --date 2018-12-24T23:59:00 ``` +### Deploy program +``` +// Command +$ solana-wallet deploy + +// Return + +``` ## Javascript solana-web3.js Interface diff --git a/src/wallet.rs b/src/wallet.rs index af7abb6aeb..044574e526 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -7,7 +7,6 @@ use chrono::prelude::*; use clap::ArgMatches; use cluster_info::NodeInfo; use drone::DroneRequest; -use elf; use fullnode::Config; use hash::Hash; use loader_transaction::LoaderTransaction; @@ -31,7 +30,6 @@ use std::{error, fmt, mem}; use system_transaction::SystemTransaction; use transaction::Transaction; -const PLATFORM_SECTION_C: &str = ".text.entrypoint"; const USERDATA_CHUNK_SIZE: usize = 256; #[derive(Debug, PartialEq)] @@ -396,16 +394,14 @@ pub fn process_command(config: &WalletConfig) -> Result