Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
saeed-zil committed Dec 25, 2023
1 parent a379d47 commit f285fae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Here is the code to parse [SendZil.scilla](./tests/contracts/SendZil.scilla) con
contract,
Contract {
name: "SendZil".to_string(),
init_params: FieldList(vec![]),
init_params: FieldList::default(),
fields: FieldList(vec![
Field::new("test_field", Type::Uint256),
Field::new("bool", Type::Bool),
Expand Down
6 changes: 3 additions & 3 deletions tests/test_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn test_send_zil_contract_parse() {
contract,
Contract {
name: "SendZil".to_string(),
init_params: FieldList(vec![]),
init_params: FieldList::default(),
fields: FieldList(vec![
Field::new("test_field", Type::Uint256),
Field::new("bool", Type::Bool),
Expand Down Expand Up @@ -125,8 +125,8 @@ fn test_timestamp_contract_parse() {
contract,
Contract {
name: "Timestamp".to_string(),
init_params: FieldList(vec![]),
fields: FieldList(vec![]),
init_params: FieldList::default(),
fields: FieldList::default(),
transitions: TransitionList(vec![Transition::new(
"EventTimestamp",
FieldList(vec![Field::new("bnum", Type::BNum)])
Expand Down

0 comments on commit f285fae

Please sign in to comment.