mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Added smart contract upgrade support. (#250)
Supports smart contract self-upgrades by allowing "post_exec.sh" script to be executed after consensus contract execution.
This commit is contained in:
@@ -16,6 +16,7 @@ const clientProtocols = {
|
||||
Object.freeze(clientProtocols);
|
||||
|
||||
const PATCH_CONFIG_PATH = "../patch.cfg";
|
||||
const POST_EXEC_SCRIPT_NAME = "post_exec.sh";
|
||||
|
||||
class HotPocketContract {
|
||||
|
||||
@@ -399,5 +400,6 @@ const errHandler = (err) => console.log(err);
|
||||
|
||||
module.exports = {
|
||||
Contract: HotPocketContract,
|
||||
clientProtocols
|
||||
clientProtocols,
|
||||
POST_EXEC_SCRIPT_NAME,
|
||||
}
|
||||
Reference in New Issue
Block a user