-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ask for 3 accounts (signer, pda, system_program) when parsing So…
…nala inbound signer address (#2787) * explicitly ask for 3 accounts on solana gateway deposit; use default relayer key path if not set * add changelog entry and revert the modification on localnet docker file * add unit test for default relayer key path * move changelog entry to Fixes section
- Loading branch information
1 parent
91c323d
commit 7b34d1d
Showing
11 changed files
with
117 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package config_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
"github.com/zeta-chain/zetacore/zetaclient/config" | ||
) | ||
|
||
func Test_GetRelayerKeyPath(t *testing.T) { | ||
// create config | ||
cfg := config.New(false) | ||
|
||
// should return default relayer key path | ||
require.Equal(t, config.DefaultRelayerKeyPath, cfg.GetRelayerKeyPath()) | ||
} |
64 changes: 0 additions & 64 deletions
64
...Morgd11p8GWEw6pmyHCDtA26NUyeNFhLWPNk2oBoM9pkag1LzhwGSRos3j4TJLhKjswFhZkGtvSGdLDkmqsk.json
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
...MPLN7hkbyCZFwKqXcg8fmEvQMD74fN6Ps2LSWXJoRxPW5ehaxBorK9q1JFVbqnAvu9jXm6ertj7kT7HpYw1j.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"slot": 321701608, | ||
"blockTime": 1724732369, | ||
"transaction": { | ||
"signatures": [ | ||
"MS3MPLN7hkbyCZFwKqXcg8fmEvQMD74fN6Ps2LSWXJoRxPW5ehaxBorK9q1JFVbqnAvu9jXm6ertj7kT7HpYw1j" | ||
], | ||
"message": { | ||
"accountKeys": [ | ||
"AS48jKNQsDGkEdDvfwu1QpqjtqbCadrAq9nGXjFmdX3Z", | ||
"2f9SLuUNb7TNeM6gzBwT4ZjbL5ZyKzzHg1Ce9yiquEjj", | ||
"11111111111111111111111111111111", | ||
"ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis" | ||
], | ||
"header": { | ||
"numRequiredSignatures": 1, | ||
"numReadonlySignedAccounts": 0, | ||
"numReadonlyUnsignedAccounts": 2 | ||
}, | ||
"recentBlockhash": "41txNvjedo2eu6aAofQfyLskAcgtrtgch9RpqnrKcv1a", | ||
"instructions": [ | ||
{ | ||
"programIdIndex": 3, | ||
"accounts": [0, 1, 2], | ||
"data": "4ALHYcAj3zFsNjmfeq7nDK1E8BsxRQRzhLjrqzmjYzL97Qkiz4rP1iQePmFAehfFEET7uczYLhhEVhtndBYNNm6ekHSkgsLzYDeSD2JSudHa6D5tqhVGjvXZ7qEouPiy9eptZfuYHE9X" | ||
} | ||
] | ||
} | ||
}, | ||
"meta": { | ||
"err": null, | ||
"fee": 5000, | ||
"preBalances": [9999364000, 1001447680, 1, 1141440], | ||
"postBalances": [9999259000, 1001547680, 1, 1141440], | ||
"innerInstructions": [ | ||
{ | ||
"index": 0, | ||
"instructions": [ | ||
{ | ||
"programIdIndex": 2, | ||
"accounts": [0, 1], | ||
"data": "3Bxs4ThwQbE4vyj5" | ||
} | ||
] | ||
} | ||
], | ||
"preTokenBalances": [], | ||
"postTokenBalances": [], | ||
"logMessages": [ | ||
"Program ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis invoke [1]", | ||
"Program log: Instruction: Deposit", | ||
"Program 11111111111111111111111111111111 invoke [2]", | ||
"Program 11111111111111111111111111111111 success", | ||
"Program log: AS48jKNQsDGkEdDvfwu1QpqjtqbCadrAq9nGXjFmdX3Z deposits 100000 lamports to PDA", | ||
"Program ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis consumed 17006 of 200000 compute units", | ||
"Program ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis success" | ||
], | ||
"status": { "Ok": null }, | ||
"rewards": [], | ||
"loadedAddresses": { "readonly": [], "writable": [] }, | ||
"computeUnitsConsumed": 17006 | ||
}, | ||
"version": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters