Skip to content

Commit

Permalink
Adapt for v1 config file change
Browse files Browse the repository at this point in the history
V1 config file generated by toml-edit uses double quote
  • Loading branch information
blckngm committed Jan 31, 2023
1 parent 6df783b commit b9ca0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/layer2-v0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function deploy_rollup_genesis() {
function generate_withdrawal_to_v1_config() {
v1_rollup_type_hash=$(cat ${V1_GODWOKEN_CONFIG} | grep rollup_type_hash | awk '{print $3}')
v1_deposit_lock_code_hash=$(cat ${V1_GODWOKEN_CONFIG} | grep deposit_script_type_hash | awk '{print $3}')
v1_eth_lock_code_hash=$(cat ${V1_GODWOKEN_CONFIG} | grep -C 1 "type_ = 'eth'" | awk '{print $3}' | grep '0x')
v1_eth_lock_code_hash=$(cat ${V1_GODWOKEN_CONFIG} | grep -C 1 'type_ = "eth"' | awk '{print $3}' | grep '0x')

echo "\n[withdrawal_to_v1_config]\nv1_rollup_type_hash = ${v1_rollup_type_hash}\nv1_deposit_lock_code_hash = ${v1_deposit_lock_code_hash}\nv1_eth_lock_code_hash = ${v1_eth_lock_code_hash}\nv1_deposit_minimal_cancel_timeout_msecs = 604800000"
}
Expand Down

0 comments on commit b9ca0fc

Please sign in to comment.