Commit 16d73bc
committed
fix(tests): node accounts in the handle factory; shared deposit in the config test
MpcCluster::contract_handle resolved keys via user_accounts only, so
propose_and_vote_contract_update panicked with "unknown user account"
for the node accounts that propose and vote; the lookup now falls back
to node_keys.
test_propose_update_config attached a hardcoded 0.1 NEAR, which the
shared deposit rule (32 KiB overhead + payload = ~0.335 NEAR for a
config proposal) rejects; the test computes the deposit through the
shared function instead.1 parent c9c4cea commit 16d73bc
2 files changed
Lines changed: 29 additions & 8 deletions
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
127 | 144 | | |
128 | 145 | | |
129 | 146 | | |
130 | 147 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 148 | + | |
| 149 | + | |
136 | 150 | | |
137 | 151 | | |
138 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
| 795 | + | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
800 | 807 | | |
801 | 808 | | |
802 | 809 | | |
803 | 810 | | |
804 | 811 | | |
805 | | - | |
| 812 | + | |
806 | 813 | | |
807 | 814 | | |
808 | 815 | | |
| |||
0 commit comments