Skip to content

Commit

Permalink
👮
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-wasp committed Dec 26, 2022
1 parent a5ec2d8 commit 4363872
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions base/spec/lib/stellar/transaction_envelope_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@
envelope.signed_by?(keypair)
end

context 'when envelope is signed by keypair' do
context "when envelope is signed by keypair" do
let(:signers) { [keypair] }
it { is_expected.to be_truthy }

it { is_expected.to be_truthy }
end

context 'when envelope is not signed by keypair' do
context "when envelope is not signed by keypair" do
let(:signers) { [] }

it { is_expected.to be_falsey }
it { is_expected.to be_falsey }
end
end
end
2 changes: 1 addition & 1 deletion ecosystem/lib/stellar/sep10/challenge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def self.read_xdr(xdr, server:)
end

def initialize(envelope:, server:)
@envelope = envelope
@envelope = envelope
@tx = envelope.tx
@server = server
end
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/lib/stellar/sep10/challenge_tx_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def time_bounds
min_time: now,
max_time: now + timeout
)
end
end
end

def main_operation
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/spec/lib/stellar/sep10_v2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
let(:attrs) { {server: server, client: user, domain: domain} }

subject(:challenge_tx) do
challenge = Stellar::Ecosystem::SEP10::Challenge.build(**attrs)
challenge = Stellar::Ecosystem::SEP10::Challenge.build(**attrs)
challenge.to_envelope.tx
end

Expand Down

0 comments on commit 4363872

Please sign in to comment.