fix solana transaction generation
This commit is contained in:
parent
5224bc00a3
commit
4f5779c983
|
@ -705,8 +705,8 @@ impl Module for Solana {
|
||||||
"nonce_pubkey": keypair.pubkey().to_string(),
|
"nonce_pubkey": keypair.pubkey().to_string(),
|
||||||
"nonce_privkey": [keypair.secret().to_bytes()],
|
"nonce_privkey": [keypair.secret().to_bytes()],
|
||||||
"transaction": instructions,
|
"transaction": instructions,
|
||||||
|
"derivation_accounts": [0u32 | 1 << 31],
|
||||||
},
|
},
|
||||||
"derivation_accounts": [0u32 | 1 << 31],
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
Operation::GetNonceAccountData(GetNonceAccountData {
|
Operation::GetNonceAccountData(GetNonceAccountData {
|
||||||
|
|
20
icepick.toml
20
icepick.toml
|
@ -60,9 +60,21 @@ from_address = "wallet_pubkey"
|
||||||
authorization_address = "authorization_address"
|
authorization_address = "authorization_address"
|
||||||
|
|
||||||
[module.workflow.step.outputs]
|
[module.workflow.step.outputs]
|
||||||
transaction = "unsigned_transaction"
|
transaction = "instructions"
|
||||||
nonce_pubkey = "nonce_pubkey"
|
nonce_pubkey = "nonce_pubkey"
|
||||||
nonce_privkey = "private_keys"
|
nonce_privkey = "private_keys"
|
||||||
|
derivation_accounts = "derivation_accounts"
|
||||||
|
|
||||||
|
[[module.workflow.step]]
|
||||||
|
type = "sol-compile"
|
||||||
|
|
||||||
|
[module.workflow.step.inputs]
|
||||||
|
instructions = "instructions"
|
||||||
|
derivation_accounts = "derivation_accounts"
|
||||||
|
blockhash = "blockhash"
|
||||||
|
|
||||||
|
[module.workflow.step.outputs]
|
||||||
|
transaction = "unsigned_transaction"
|
||||||
|
|
||||||
[[module.workflow.step]]
|
[[module.workflow.step]]
|
||||||
type = "sol-sign"
|
type = "sol-sign"
|
||||||
|
@ -78,12 +90,12 @@ transaction = "signed_transaction"
|
||||||
[[module.workflow.step]]
|
[[module.workflow.step]]
|
||||||
type = "sol-broadcast"
|
type = "sol-broadcast"
|
||||||
inputs = { cluster = "cluster", transaction = "signed_transaction" }
|
inputs = { cluster = "cluster", transaction = "signed_transaction" }
|
||||||
outputs = { status = "status", url = "url" }
|
outputs = { status = "status", url = "url", error = "error" }
|
||||||
|
|
||||||
[[module.workflow.step]]
|
[[module.workflow.step]]
|
||||||
type = "internal-cat"
|
type = "internal-cat"
|
||||||
inputs = { status = "status", url = "url", nonce_account = "nonce_pubkey" }
|
inputs = { status = "status", url = "url", nonce_account = "nonce_pubkey", error = "error" }
|
||||||
outputs = { status = "status", url = "url", nonce_account = "nonce_account" }
|
outputs = { status = "status", url = "url", nonce_account = "nonce_account", error = "error" }
|
||||||
|
|
||||||
[[module.workflow]]
|
[[module.workflow]]
|
||||||
# Transfer SOL from one address to another.
|
# Transfer SOL from one address to another.
|
||||||
|
|
Loading…
Reference in New Issue