Skip to contents

Similar to mc_add_library_update, but allows specifying the sending address.

Usage

mc_add_library_update_from(conn, from_address, library, updatename, js_code)

Arguments

conn

A connection object created by mc_connect.

from_address

Character string. Address that pays for and issues the update.

library

Character string. Library name or transaction ID.

updatename

Character string. Name of this update.

js_code

Character string. The new JavaScript code (or patch).

Value

A list containing the result of the RPC call (usually transaction ID).

Examples

if (FALSE) { # \dontrun{
mc_add_library_update_from(conn, "1A...", "math", "v2", "function add(a, b) { return a + b; }")
} # }